zhoukk / stb-imv

Automatically exported from code.google.com/p/stb-imv
GNU General Public License v2.0
0 stars 0 forks source link

stb-imv "eats" memory #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run stb-imv in folder with 100+ pics.
2. Browse near all of them.
3. Find in Task Manager 200-300Mb+ of consumed memory.

What is the expected output? What do you see instead?
I think you need free memory from already seen files.

What version of the product are you using? On what operating system?
Windows, imv-stb 1.01

Original issue reported on code.google.com by superm...@gmail.com on 20 Jul 2012 at 6:10

GoogleCodeExporter commented 9 years ago
stb-imv intentionally caches the last 100 pictures seen for faster browsing.

I could make the size configurable, but I doubt it's worth it; unless you're 
opening up multiple stb-imv windows I don't think one instance using 300MB 
should be too big a deal on a modern machine.

Original comment by nothings...@gmail.com on 20 Jul 2012 at 6:48

GoogleCodeExporter commented 9 years ago
I think it's reasonable limit cashe for example to 10-20 pics, because stb-imv 
is very light viewer and very useful on old PCs without gigabytes of memory.

Original comment by superm...@gmail.com on 20 Jul 2012 at 6:59

GoogleCodeExporter commented 9 years ago
Hmm, I don't think stb-imv is really designed to run well on old machines, 
since it's pretty aggressive about using threads and memory. But I've never 
tried, so what do I know.

I'll consider it.

Original comment by nothings...@gmail.com on 20 Jul 2012 at 8:21