httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Plüm, Rüdiger, VF-Group <ruediger.pl...@vodafone.com>
Subject Re: Apache memory usage
Date Tue, 11 Dec 2007 11:09:26 GMT


> -----Ursprüngliche Nachricht-----
> 
> Im Auftrag von Justin Erenkrantz
> Gesendet: Dienstag, 11. Dezember 2007 11:05
> An: dev@httpd.apache.org
> Betreff: Re: Apache memory usage
> 
> 
> On Dec 10, 2007 10:42 PM, Stefan Fritsch  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

Additionally, the first thing the macro does is checking whether the
brigade is empty :-).

Regards

Rüdiger


Mime
View raw message