Libzip is a nice library, but makes restrictions to the list of formats: only zip with bzip2 and deflate(zlib) compression.
I did more complex tests:
952 MB - source (955 MB in test.tar)
263 MB - 092.210 sec., ptime cmd /c "7za.exe a -r -t7z -m0=lzma2 -mx=9" > LZMA.txt
287 MB - 079.436 sec., ptime cmd /c "WIMLIB-IMAGEX capture Test Test.wim --compress=lzx:400 –solid" > LZX.txt
287 MB - 078.865 sec., ptime cmd /c "WIMLIB-IMAGEX capture Test Test.wim --compress=lzms:100 –solid" > LZMS.txt
312 MB - 175.498 sec., ptime cmd /c "ptiso.exe create -z lzma Test.cfs Test" > PTISO_LZMA.txt
361 MB - 286.312 sec., ptime cmd /c "7za.exe a -tzip -m0=BZip2 -mx=9 BZip2.zip ./Test" > BZIP1.txt
366 MB - 082.025 sec., ptime cmd /c "bzip2.exe -k -c -9 test.tar > test.9.bz2" > BZIP2.txt
386 MB - 139.419 sec., ptime cmd /c "7za.exe a -tzip -m0=Deflate -mx=9 Deflate.zip ./Test" > DEFLATE.txt
396 MB - 091.878 sec., ptime cmd /c "gzip.exe -c -9 test.tar > test.9.gz" > GZIP.txt
397 MB - 027.481 sec., ptime cmd /c "IMAGEX /capture T: IMAGEX.esd ""IMAGEX"" /compress maximum" > Imagex.txt
397 MB - 031.140 sec., ptime cmd /c "DISM /Capture-Image /ImageFile:D.esd /CaptureDir:T\ /Name:"Dm" /Compress:maximum" > D
431 MB - 080.025 sec., ptime cmd /c "COMPACT /c /f /s /a /i /exe:lzx I:\*.* " > Comp.txt
437 MB - 138.937 sec., ptime cmd /c "lz4.exe -16 test.tar test.lz4" > LZ4.txt
437 MB - 066.005 sec., Pismo PFO (test performed 2018-08-10)
Startup and closing time for portable:
- 06/10 s. - nsis-portable (original)
- 10/10 s. - imagex-portable (problems - sometimes files and folders stop opening even for reading)
- 18/10 s. - pismo-portable (problems - Adobe Acrobat, TreeSize and other software don't work)
Now the leaders are compact, but not reliable IMAGEX and reliable, but cumbersome and slow PISMO.
Dokan+bzip2 is our hope (compression 2.6X), because Dokan+LZ4 is not impressed, Dokan+7Z is not writable
and Dokan+WIMLIB is not possible. ))) Or not?