
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Robert Ramey Sent: 21 May 2008 03:12 To: boost@lists.boost.org Subject: Re: [boost] [serialization] Binary archive STL containertemplatespecialization?
I think you should think bigger.
Howabout compressing the whole stream in a general way.
Why not encrypt it while you're at it.
Oh and avoid wrtting code altogether.
I bet you think I'm being sarcastic.
Well, I'm not - I'm serious.
I would investigate using the serialization library along with binary (or maybe text as an experiment), in combination of io streams library. Serialization should work with ANY stream. And the io streams library includes zlib compression. (I don't know about encryption). So in theory, you should be able to get your data stream shrunk by 50% and free encryption - without writting any code at all.
Another advantage to Robert's suggestion is that you probably get some error detection thrown in - for very good measure. If you are building a system for controlling warehouse picking, you must surely be considering some error detection/correction? Of course, anything with iostreams is complicated but http://www.boost.org/doc/libs/1_35_0/libs/iostreams/doc/index.html gives you a good start. Paul --- Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539561830 & SMS, Mobile +44 7714 330204 & SMS pbristow@hetp.u-net.com