|
Boost Users : |
Subject: [Boost-users] [iostreams] How to utilize zlib setDictionary method
From: Ringel, Rick (Rick.Ringel_at_[hidden])
Date: 2015-02-09 20:38:09
I have a use-case that requires highly efficient bandwidth utilization over a narrow WAN connection, where communication is message-oriented. I have successfully used boost to gzip, zlib, and bzip2 my messages, and ran some numbers (bzip2 is best so far). However, in researching and profiling zlib's native API, I found I could improve efficiently by an additional 15% over bzip2 by using zlib's SetDictionary methods for deflate and inflate.
How would I go about extending boost:iostream's zlib_compressor and zlib_decompressor classes to utilized a predefined/static dictionary? Or, is it best just to use zlib's API directly, and bypass boost for this specialized zlib compression case?
-Rick
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net