fire-eggs / DarkThumbs

Adds thumbnail preview to Windows Explorer for EPUB, FB2, DJVU and Kindle ebooks; 7Z, CB7, CBZ, CBR, RAR and ZIP archives.
451 stars 23 forks source link

CBR/CBZ performance #32

Open fire-eggs opened 3 years ago

fire-eggs commented 3 years ago

The creation of thumbnails for CBR/CBZ files takes a little bit: around one second.

[For me, with a large CBR/CBZ across the network, it can take 5 seconds]

With the sort option ON, the CBR/CBZ logic scans the entire archive to determine the first image alphabetically.

This can be optimized for ZIP [speed up the scan cycle]. Not sure about CBR [unrar isn't very smart].

vivadavid commented 3 years ago

I've done more testing and, if I turn Sorting off, sometimes the right cover is shown, sometimes the wrong one, but I'd say that more often the wrong one.

vivadavid commented 3 years ago

As for speed, I said somewhere else that each thumbnail takes one second to be produced. I may have exaggerated: it could take one second to produce a couple of covers.

0Raik commented 8 months ago

To enhance the speed what I do is instead of "compressing" I tell Winrar to change compression method from "normal" to "store". It makes a .zip file instantly and any application can open it lightning fast as no one has to 'decompress' anything. I do this because the compression method "best" only saves -1% space, takes 21 seconds to complete and takes a lot to decompress for the thumbnailer and any comic viewer. Check this 200 pages manga example:

nope

Not worth it. JPEG and JPG are already a compression method so we gain nothing by compressing less than 1 percent. Only slowness everywhere. If the manga/comic is PNG or even better BMP then yes, compress it. But I only select "store" as my compression method to enjoy the advantage of not having hundred of thousands of images in folders and just some CBZ files around.

To have CBZ files just rename the ZIP file. To mass rename I recommend a renamer like https://www.den4b.com/products/renamer

Enjoy Life.