Skip to content

Reduce Memory allocation of an import window #16251

Closed Answered by thevortexcloud
SirZeeno asked this question in Q&A
Discussion options

You must be logged in to vote

There is some further discussion here about memory usage and bitmaps.

#14304

But in general as long as you are using a virtualised list, are not showing a huge amount of them at once, all the bit maps are the same size, and you lazy load everything, memory usage should stay fairly solid when scrolling through the list and be somewhat reasonable. I was able to get memory usage down even further in my case by force disposing bitmaps in my codebehind when they were removed from the virtualised list. Using Bitmap.Decode also seems to make memory usage far worse than just resizing them ahead of time and then caching the result to disk.

a thumbnail and just the normal image would be, I'll take…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@stevemonaco
Comment options

@BAndysc
Comment options

@SirZeeno
Comment options

@thevortexcloud
Comment options

Answer selected by SirZeeno
@SirZeeno
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants