ollm / OpenComic

Comic and Manga reader, written with Node.js and using Electron
GNU General Public License v3.0
872 stars 76 forks source link

[Feature Request]: lower the memory usage on large archive files #236

Open tw8sqf3s opened 3 months ago

tw8sqf3s commented 3 months ago

Preflight Checklist

Describe your suggested feature

have some type of setting that limits the number of images or the total size of said images that get loaded into memory.

Additional Information

loading large cbz files with a lot of images (aka. manga volumes) makes the app take up to a gigabyte of memory which really slows everything down on low end systems.

it takes about 1.2GB of memory when opening then after a minute or two it settles around 650MB ~ 700MB while keeping my HDD pinned at 100%

Sample file

No response

ollm commented 3 months ago

For now, you can try this Windows build of the master branch, it has some performance improvements 0e6000f00e445de98eab7cdfbf72ee9b0016bf26, although the memory usage should be the same, the HDD/CPU usage should be reduced.

Build: https://mega.nz/file/zbx3maAK#UP67deOXFB39shZGfinJgTYjhuH2JRri_v-sVMoBUug