2010/12/18 Daniel Stenberg <[email protected]> > On Fri, 17 Dec 2010, Fei Yan wrote: > > What do you mean? How does libcurl's behavior change in "debug mode" ? >>> >> >> I tried configure with --enable-debug, and the performance is quite bad, >> over x10 times slower. >> > > Sorry, but as a general statement that's simply not true.
I admit I might exaggerated the performance downgrade, but the result is, originally all 1000 file upload could be done within 60 seconds, while after the change (enable-debug, verbose open), it's much too slow and used up the total 5 minutes (that's the required period). > Debug mode disables optimizations (and adds -g to the compiler options) and > runs a little extra code here and there, but I fail to see how that ends up > ten times slower for anyone and it certainly has never slowed it down that > much for me. > > Are you sure that's the only difference between your test runs? If so, what > specific part/section/action is ten times slower? > Yes, pretty sure. I just rebuilt the libcurl, relink the application, and enable the verbose option and redirect the logs to our file log handlers (stdout/stderr streams are disabled in our application). > > -- > > / daniel.haxx.se >
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
