httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Erenkrantz" <jus...@erenkrantz.com>
Subject Re: Apache memory usage
Date Tue, 11 Dec 2007 10:04:53 GMT
On Dec 10, 2007 10:42 PM, Stefan Fritsch <sf@sfritsch.de> wrote:
> Yes, that works as well. I wanted to avoid calling APR_BRIGADE_PREPEND
> when the temporary brigade is empty. But I don't really know whether
> APR_BRIGADE_PREPEND is so expensive that this makes sense. An
> alternative would be to check this using APR_BRIGADE_EMPTY.

FWIW, as the brigade is a ring (read: dual-linked list), prepend or
append are both constant-time operations - on the order of maybe 2-3
instructions.

IOW, it's cheap.  -- justin

Mime
View raw message