httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <>
Subject Re: cvs commit: apache-1.3/src/modules/standard mod_log_referer.c
Date Fri, 22 May 1998 18:27:11 GMT
At 07:00 PM 5/22/98 +0100, Ben Laurie wrote:
>Err? Surely alloca only hits the kernel if you have to grow the stack as
>a result? And, of course, it gives the memory back much sooner than
>pstrdup does.

Like I said, I don't know.  Others have pointed out man pages that say it's
highly machine dependent and should be avoided in cross-platform code.  On
the other hand we use it in a couple places in our core code, so it must
work well enough.  None of the other modules use it however.  It'd be
interesting to see benchmarks...


pure chewing satisfaction                        

View raw message