BandiZip 7Z slow compression?

135 views
Skip to first unread message

hex...@gmail.com

unread,
Oct 7, 2020, 6:23:21 AM10/7/20
to Bandizip for Windows forum
Some benchmarks here https://peazip.github.io/peazip-compression-benchmark.html
... and beside this is the PeaZip site, I can confirm 7Z compression is usually quite slow with BandiZip, sometimes twice the time it takes with 7zip or others.
Wondering if could be improved a bit...

KH Park

unread,
Oct 11, 2020, 11:15:59 PM10/11/20
to Bandizip for Windows forum

1) Peazip has 7z.exe itself, so its 7z performance is always equal to 7zip.

image.png


2) Bandizip uses LZMA SDK to create 7z files, so its performance isn't so different from 7zip.

For example, I have tested a simple test like this.
- Create a sample file using LZ data generator (https://github.com/jibsen/lzdatagen)
  ./lzdgen -s 1G 1g.data

- Compress it using 7z
image.png

- Compress it using bz
image.png


The result could be changed when you change compression options.








--
You received this message because you are subscribed to the Google Groups "Bandizip for Windows forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bandizip-win...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bandizip-win/854a30fb-3f8d-44b4-8a06-d3d3e4766ad7o%40googlegroups.com.
Message has been deleted

Luca L

unread,
Oct 12, 2020, 7:50:03 AM10/12/20
to Bandizip for Windows forum
Thanks for testing.
Following your steps I tried the same on a more complex archive (a game dir with many files of different dimensions, over 512MB of data):

PS D:\GOG\Games> Measure-Command { bz a -r bz.7z .\Flashback\ }


Days              : 0
Hours             : 0
Minutes           : 1
Seconds           : 26
Milliseconds      : 668
Ticks             : 866685193
TotalDays         : 0,00100310786226852
TotalHours        : 0,0240745886944444
TotalMinutes      : 1,44447532166667
TotalSeconds      : 86,6685193
TotalMilliseconds : 86668,5193



PS D:\GOG\Games> Measure-Command { C:\Users\Luca\Desktop\7z1900-x64\7z.exe a -r 7z.7z .\Flashback\ }


Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 25
Milliseconds      : 361
Ticks             : 253617242
TotalDays         : 0,000293538474537037
TotalHours        : 0,00704492338888889
TotalMinutes      : 0,422695403333333
TotalSeconds      : 25,3617242
TotalMilliseconds : 25361,7242



PS D:\GOG\Games>

KH Park

unread,
Oct 13, 2020, 11:00:52 PM10/13/20
to Bandizip for Windows forum

You are right.


I made a big mistake. :( 

Bandizip 7.10 has a problem of slowing down when compressing small files (Nkb  ~ Nmb) to 7z format.
 
I have fixed it and you can download it here, and I should improve it.



Thank you.



Luca L

unread,
Oct 14, 2020, 4:49:38 AM10/14/20
to Bandizip for Windows forum
Works like a charm now!
Even a bit faster than original 7z.exe ;)
Thank you!

PS D:\GOG\Games> Measure-Command { bz a -r bz.7z .\Flashback\ }


Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 24
Milliseconds      : 907
Ticks             : 249073490
TotalDays         : 0,000288279502314815
TotalHours        : 0,00691870805555555
TotalMinutes      : 0,415122483333333
TotalSeconds      : 24,907349
TotalMilliseconds : 24907,349



PS D:\GOG\Games>

Luca L

unread,
Oct 14, 2020, 5:21:21 AM10/14/20
to Bandizip for Windows forum
BTW, I've noticed bz.exe from shell result is ~154MB. Compressing the same files from BandiZip UI (Normal 7Z compression, Solid mode) compress it to ~145...

KH Park

unread,
Oct 14, 2020, 11:11:31 PM10/14/20
to Bandizip for Windows forum

Yes. An archives' compressed size and compression time could be varied by its LZMA2 block size and dictionary size settings.

You could change 7z block size here.

image.png



Luca L

unread,
Oct 15, 2020, 6:09:02 AM10/15/20
to Bandizip for Windows forum
How to set-up default Solid block size for the shell command bz.exe (system variable or ini/cfg file?).
My suggestion, in case, would be to centralize Solid block size settings for both bz.exe and BandiZip UI ( = a single setting for both)...

KH Park

unread,
Oct 16, 2020, 1:41:44 AM10/16/20
to Bandizip for Windows forum


7Z block size can be configured by -7zblock: switch like this

> bz.exe c -7zblock:10m  test.7z test


-7zblock:0 means non-solid and,  
-7zblock:-1 means solid but you have to install the latest beta first here. https://www.bandisoft.com/bandizip/beta/

Bandizip.exe uses the command line option first, and refers to registry options later.

On the other hand, bz does not refer to any registry values.

They have similar command line commands but work differently.


Best regards.



Luca L

unread,
Oct 16, 2020, 6:38:11 AM10/16/20
to Bandizip for Windows forum
Thanks for explanations, I'm sure you'll update also the Command Line online Help page once public...
BTW, what does Solid option alone do compared to when you specify the Solid size?

KH Park

unread,
Oct 19, 2020, 1:20:53 AM10/19/20
to Bandizip for Windows forum

>> Thanks for explanations, I'm sure you'll update also the Command Line online Help page once public...
Sure, I'll document it later.

>> BTW, what does Solid option alone do compared to when you specify the Solid size?

Solid (whole solid) compression compresses all data into one block, and multiple solid block compression is described here.

(Please check "Compression with multiple solid blocks" section)

Best Regards, 


Reply all
Reply to author
Forward
0 new messages