Re: [Modcplusplus-user] Request paramaters decode class
Brought to you by:
gr84b8,
johnksterling
From: Nathan S. <na...@al...> - 2002-04-26 03:31:12
|
On Thu, 2002-04-25 at 15:07, jo...@st... wrote: > the only problem with the streams stuff is that we'll need to link against > some other libraries. did you do a LoadFile in order to run the test > suite as well? > Yes, you're correct. I had to add a: LoadFile /usr/lib/libstdc++-3-libc6.1-2-2.10.0.so in httpd.conf before LoadModule mod_cplusplus ... (You'll have to substitue for whatever version libstdc++ you have of course). The only reson I didn't think to mention it sooner as I had to add it to the httpd.conf to get mod_cplusplus to load originally. Not sure why, as you aren't useing anything that would seem to require it. If you decide not to use the streams it would be an easy matter to rip them out, just delete the apache_output_buffer class, and change request_env to not inherit from ostream. I'm a big fan of streams though. Like I think most c++ programmers I wasn't originally, and kept slipping back to good old printf, but after one two many printf("%d",char* p) situations I saw the light. Initially I thought they might have a rather severe impact on performance but my very unscientific ab testing show only about 7% loss on the test handler (which performs no real work). nathan |