Subject: Some actual numbers… (re: LZ1 Compression)
LZ1 is much better compression than Huffman. Obviously the file itself has to be compressible to have a meaningful difference:Zips are obviously already compressed, as are many image file types.
OpenOffice Writer docs (at least from 2.x) are really zip files, so there shouldn’t be a difference between LZ1 and Huffman on those
Word documents and Notes databases fall into a bit of a grey area, as each can be thought of as a container for the purposes of compression. If the contents within the container are largely images, then they won’t compress well. Consequently, sometimes they’re compressible, other times not.
Therefore, when testing the difference between Huffman and LZ1, it’s important to also use another compression utility alongside to serve as a indicator of whether a file will compress with LZ1 or not. Create a RAR, or Zip, or 7zip, or gzip or whatever your favourite happens to be. Point is determining whether the file is a decent candidate for compression.
OK, enough generalities, here are some numbers (all file sizes in bytes):
Description
File name
File size
Huffman
LZ1
Zip
Lotus Notes and Domino 7 Enterprise Upgrade Best Practices (Redbook)
redp4120.pdf
7,830,297
7,824,968
0.07%
7,611,518
2.79%
7,374,816
5.82%
Domino 7 Performance Tuning Best Practices to Get the Most Out of Your Domino Infrastructure (Redbook)
redp4182.pdf
2,649,769
2,640,242
0.36%
2,527,551
4.61%
2,405,439
9.22%
Lotus Domino 7 Application Development (Redbook)
redp4102.pdf
3,390,361
3,384,888
0.16%
3,268,957
3.58%
3,136,940
7.47%
Domino Web Access Template (Notes 6.5.4)
iNotes6.ntf
13,631,488
9,157,831
32.82%
5,701,051
58.18%
3,488,421
74.41%
OpenNTF Mail Experience (Release 7.0.2b HF1)
ONTF_dwa702b
_hf1.ntf
20,709,376
13,075,803
36.86%
8,425,127
59.32%
4,758,470
77.02%
Notes:
as noted above, all file sizes listed in bytes
percentage values in the compression columns represent the “savings” as compared to the original file size
Huffman and LZ1 numbers retrieved from Document Properties - Fields tab. Look for $File items, and scroll within them to find “Object Length”. “Compression Type” is also listed there, so this procedure also confirms which of the two was actually used by the Notes client.
Zip files created with WinZip 9.0 SR1, “normal” compression. Maximum would have yielded smaller files, but that wasn’t really the point of this exercise.
So, as those numbers demonstrate, LZ1 does make a significant difference compared with Huffman. The size of the difference depends on the source file of course. If the file can be compressed well, LZ1 makes a drastic difference in byte savings. Even if the file doesn’t compress very well, such as the PDFs above, the difference in percentage terms is huge. Especially when added up through an organization.
(edited to fix a typo, and to reformat the table a bit…)