ahodesuka / ahoviewer

A GTK image viewer, manga reader, and booru browser
MIT License
486 stars 31 forks source link

Improve archive image thumbnailing #150

Open ahodesuka opened 2 years ago

ahodesuka commented 2 years ago

The current way thumbnails are generated for archives, if I remember correctly, is that every file is decompressed at the same time (up to the thread limit set by the imagelist) and the thumbnail is created. This causes an extreme IO bottleneck and most likely hinders performance.

The images should be extracted on one thread and there should be another thread waiting on a queue to create thumbnails for newly extracted images.