How to use bucket more efficient?

2009-01-07 Thread 贾晓建
Hello everyone! In the article Introduction to Buckets and Brigades, the author mentions “””Note that we created a new bucket every time we replaced a character. Couldn't we have prepared four buckets in advance - one for each of the characters to

Re: Does apr_atomic_inc64 exist ?

2009-01-07 Thread William A. Rowe, Jr.
Daniel May wrote: > What is the APR standard for utilizing functions that may or may not be > present in a specific version of an OS ? > For example, there are two ways, at run time, to detect the presence of > InterlockedIncrement64() under Windows. > > A. You could call a LoadLibrary/GetProcAd

RE: Does apr_atomic_inc64 exist ?

2009-01-07 Thread Daniel May
What is the APR standard for utilizing functions that may or may not be present in a specific version of an OS ? For example, there are two ways, at run time, to detect the presence of InterlockedIncrement64() under Windows. A. You could call a LoadLibrary/GetProcAddress combination on the funct

Re: Does apr_atomic_inc64 exist ?

2009-01-07 Thread Jim Jagielski
On Jan 6, 2009, at 12:50 PM, Justin Erenkrantz wrote: On Tue, Jan 6, 2009 at 7:17 AM, Daniel May wrote: I am looking for a 64-bit counterpart to apr_atomic_inc32(). Has this been implemented ? I don't believe that we've guaranteed 64-bit atomics anywhere. I'm not sure how much underlyin

Re: svn commit: r731965 - /httpd/httpd/trunk/modules/generators/mod_cgid.c

2009-01-07 Thread Jim Jagielski
On Jan 6, 2009, at 11:31 AM, William A. Rowe, Jr. wrote: Nick Kew wrote: [crossposting because this httpd issue raises an APR issue] Jeff Trawick wrote: On Tue, Jan 6, 2009 at 10:05 AM, mailto:traw...@apache.org>> wrote: Author: trawick Date: Tue Jan 6 07:05:33 2009 New Revision: