Memory usage of instrument metadata cache (InstrumentMeta object)

Our thick client desktop application provides a tool similar to Workspace Monitor, where our users can open a list of instruments with specific fields to monitor. Sometimes that list can be fairly large, up to 500 instruments. In profiling the memory usage in our desktop application we noticed that a large portion of the memory was being used by Refinitiv.Data.Content.HistoricalPricing.TSI.Metadata.InstrumentMeta objects which are around 1.75 MB each. Is there anything that could be done to reduce the memory footprint of the metadata cache? Here is a snapshot of our memory profile after opening 100 instruments...

1708367316869.png

Best Answer

  • Hello @cory.schmidt.1

    Good news !

    I implemented a solution to reduce memory usage of Instrument meta data by about 90%.

    Have sent you an email with the link on BAMS - newest package version is 1.0.5

    Bellow is a snapshot of pre and post fix with 1 instrument and then post fix scaled to 100 instruments from which about 90 opened. Because I do not have Resharper tools, I am using the Profiler inside Visual Studio.

    Instrument Meta memory fix.png

Answers