perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <>
Subject Re: [mp2 filters] allocating modperl_wbucket_t or not
Date Thu, 11 Dec 2003 13:46:41 GMT

Stas Bekman wrote:
> Currently we allocate a wbucket of type modperl_wbucket_t for each
> filter invocation. If it's not a streaming filter (i.e. manipulates
> bucket brigades or doesn't use read/print) it's never going to need
> wbucket. wbucket consumes 16404 bytes, the filter struct without
> wbucket consumes 60 bytes. In order not to penalize non-streaming
> filters, I suggest not to allocate wbucket if and not until it's first
> used.

you're still way ahead of the game here, so go with what you think is best
(thanks for asking, though :)

if you have the time and can explain what a wbucket is, that would be great,
too :)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message