Boost logo

Boost Users :

From: KSpam (keesling_spam_at_[hidden])
Date: 2008-03-03 19:57:10


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




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