Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Memory tiling management and Large Objects C#

I have a set of images that stored in a 3D array of type Int16 , the number of images i cache can reach up to 600 images or more which affect the memory performance the garbage collection performance. I heard about memory tiling that can enhance the memory management as it sets the sub-array elements in a separate chunk.
- can I use memory tiling in my case?
- if yes, how can I use it?

like image 427
Sara S. Avatar asked Oct 10 '22 12:10

Sara S.


1 Answers

can i use memory tiling in my case?

Yes. A 3d array of int16 [,,] has to be ONE block of memory. Put that into slices and they are smaller already. ([][,]).

The rest depends on your exact needs.

like image 80
TomTom Avatar answered Dec 02 '22 02:12

TomTom