4 Mar
2008
4 Mar
'08
12:57 a.m.
JC, I am not an expert on Iostreams, but I was able to obtain a significant performance improvement by removing temporaries and passing by reference instead of by value. I have attached the code. Notice, that I am using back_inserter and make_iterator_range instead of stringstream operations. Hope This Helps, Justin On Monday 03 March 2008 15:13:32 j.c. wrote:
Ok I think this sucks. :-) Here is my code to implement zlib compression/decompression via boost. However since is uses streams I cannot simply pass a buffer. This code is intended for compress socket buffers, but is pathetically slow. HAs anyone done this? What can I improve? The copy seems to be the bottle neck.
thx jc