dandere2x icon indicating copy to clipboard operation
dandere2x copied to clipboard

performance: store in memory

Open illeatmyhat opened this issue 3 years ago • 1 comments

This cycle of caching things on disk is probably pretty terrible for performance. 32GB of RAM has become fairly common-place, and I imagine anyone using this software is going to have at least that much. Despite that, memory usage remains low.

I recommend keeping your various buffers stored in main memory and GPU memory as much as possible instead of serializing them to disk. The cost of constantly serializing and parsing JPGs aside, constantly walking back and forth between disk and RAM must be enormously expensive.

illeatmyhat avatar Sep 03 '20 06:09 illeatmyhat

Marking this as an active task right now, will report back whenever

akai-katto avatar Sep 04 '20 23:09 akai-katto