From: Dean M. B. <mik...@gm...> - 2010-05-28 03:52:55
|
On Fri, May 28, 2010 at 12:42 AM, Nelson, Erik - 2 <eri...@ba...> wrote: > Dean Michael Berris wrote: > >> Please >> indicate your votes so I can focus my energies (and other people >> interested in contributing) towards completing something that matters >> to those already in the list > > Since you asked :) I wouldn't mind a little more focus on efficiency... > if I call http::client.post() with a payload (body), it looks to me like > that body gets fully copied at least 5 times in cpp-netlib before it > goes down the wire if I understand correctly. > Hmmm... That's odd. Are you just looking at the code or are you tracing that the message is being copied 5 times? The copy should only happen once and only if there's a redirect encountered. Are you trying with the latest in master or with a previous release of the library? > In my application, I routinely send 10-20MB messages. I haven't done > any testing but it seems to me that there might be a way to do this a > little more efficiently. > Please let me know where these copies occur and when. I can try it out on my own but it looks like you've looked into it already -- pointers greatly appreciated. Thanks for your input Erik! -- Dean Michael Berris deanberris.com |