speed up built in ZIP packer

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

gonzo55
Junior Member
Junior Member
Posts: 9
Joined: 2020-02-20, 00:02 UTC

speed up built in ZIP packer

Post by *gonzo55 »

current embedded packer is very slow, modern CPUs have 12-16 threads, built in packer can utilize only 3-5%
maybe add option to use WinRAR for ZIP compression, it can compress to ZIP format with 50% CPU load, and archives well compatible with stanard windows explorer
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: speed up built in ZIP packer

Post by *ghisler(Author) »

I couldn't find any way to paralellize ZIP packing. The only thing I could do would be packing multiple files in parallel, but this would only be faster when using an SSD...
Author of Total Commander
https://www.ghisler.com
gonzo55
Junior Member
Junior Member
Posts: 9
Joined: 2020-02-20, 00:02 UTC

Re: speed up built in ZIP packer

Post by *gonzo55 »

it's better than nothing
User avatar
Dalai
Power Member
Power Member
Posts: 9387
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: speed up built in ZIP packer

Post by *Dalai »

You could just set a ZIP packer in Configuration > Options > Packer > Zip packer, and uncheck "Use internal ZIP packer" option.

Packing multiple files in parallel is a bad idea when they're on a harddrive.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
gonzo55
Junior Member
Junior Member
Posts: 9
Joined: 2020-02-20, 00:02 UTC

Re: speed up built in ZIP packer

Post by *gonzo55 »

2Dalai
>and uncheck "Use internal ZIP packer" option
i already try it, i was set winrar.exe for ZIP packaging but it doesn't work, also i think pack optons "create separate archives..." and "leave out base directory..." will stop work with external program
>bad idea when they're on a harddrive
maybe for people without ssd, but we live in 2020 when ssd is very cheap, i don't know anybody from my friends who haven't it today and some of they without hdd!
User avatar
Dalai
Power Member
Power Member
Posts: 9387
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: speed up built in ZIP packer

Post by *Dalai »

gonzo55 wrote: 2020-02-20, 15:24 UTC i was set winrar.exe for ZIP packaging but it doesn't work
Meaning?
gonzo55 wrote: 2020-02-20, 15:24 UTC also i think pack optons "create separate archives..." and "leave out base directory..." will stop work with external program
You can add command line parameters in the packer's edit field as well.
gonzo55 wrote: 2020-02-20, 15:24 UTC>bad idea when they're on a harddrive
maybe for people without ssd, but we live in 2020 when ssd is very cheap, i don't know anybody from my friends who haven't it today and some of they without hdd!
SSDs are excellent for storing the OS and perhaps most used programs, but certainly not for storing many large files like movies, large games and so on. If you can store such things on an SSD, good for you, but keep in mind that not all people have the money to buy large SSD, because they're still more expensive per GB than HDDs by several orders of magnitudes!

[EDIT]
Just to make it easier: WinRAR can still be used/called via the context menu, just like in Explorer. Meaning it's not necessary to set it as ZIP packer in TC.
[/EDIT]

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
petermad
Power Member
Power Member
Posts: 14795
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: speed up built in ZIP packer

Post by *petermad »

IF I configyre WINRAR.EXE (or RAR.EXE) as the ZIP-packer, I cannot avoid a password setting dialog (prompt).
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: speed up built in ZIP packer

Post by *ghisler(Author) »

You cannot set WINRAR as ZIP packer because the parameters are completely different.
Author of Total Commander
https://www.ghisler.com
User avatar
vdijken
Member
Member
Posts: 181
Joined: 2016-07-30, 14:07 UTC
Location: The Netherlands

Re: speed up built in ZIP packer

Post by *vdijken »

Packing to a ZIP-archive on another device than the sources helps reducing the I/O on the same SSD or HDD.
gonzo55
Junior Member
Junior Member
Posts: 9
Joined: 2020-02-20, 00:02 UTC

Re: speed up built in ZIP packer

Post by *gonzo55 »

Looked at the list of changes from beta 11 and found
16.12.22 Added: High speed packing and unpacking of ZIP files with modified libdeflate library (32/64)
Got excited and decided to give it a try. But no improvement, still 10% CPU utilisation at maximum compression level with the built-in ZIP packer. At the same time, packing ZIP in WinRAR with maximum compression loads the CPU by 45% with a corresponding increase in speed. If there are no plans to improve the built-in ZIP packer, then implement the connection as an external ZIP packer by WinRAR. There are now many obsolete formats in packer settings such as ARJ, LHA, UC2... I don't remember when I've seen them, maybe 15 or 20 years ago. Maybe replace them with something current, e.g. the one I suggested?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6481
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: speed up built in ZIP packer

Post by *Horst.Epp »

I suggest stopping that special handling of Zip archives.
Just allow to config any external packer or plugin to handle zip files
without the need for special tricks.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1372a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: speed up built in ZIP packer

Post by *ghisler(Author) »

Have you actually tried the new internal packer? In my tests, the 32-bit packer is more than twice the speed of the old packer, and the 64-bit packer is 3 times the speed (when packing large files), with the same CPU load.
Author of Total Commander
https://www.ghisler.com
User avatar
Dalai
Power Member
Power Member
Posts: 9387
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: speed up built in ZIP packer

Post by *Dalai »

2gonzo55
Without having checked anything I think that the speed is improved. The change you quoted doesn't state anything about multi-threading leading to a higher CPU usage.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
funkymonk
Senior Member
Senior Member
Posts: 416
Joined: 2013-12-04, 09:56 UTC

Re: speed up built in ZIP packer

Post by *funkymonk »

I have done a few quick tests for TC11.00b1x32 on Win11b22621.
In average get 3x speedup on compress and 2x speedup on decompress (compared to TC 10.52).
Galizza
Member
Member
Posts: 167
Joined: 2018-09-07, 05:21 UTC

Re: speed up built in ZIP packer

Post by *Galizza »

funkymonk wrote: In average get 3x speedup on compress and 2x speedup on decompress (compared to TC 10.52).
Same results on my pc and the speed improvement on verify proccess is even better.
Post Reply