httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [PROPOSAL] xml-related changes to apreq2
Date Wed, 31 Mar 2004 18:16:36 GMT
Joe Schaefer wrote:
> One of the biggest shortcomings in apreq2
> is in the overuse of the body table in 
> apreq_request_t.  It's used as a flag
> to mark that parsing has begun (req->body != NULL).
> It's also used to hold the parser's output,
> which is almost useless when a parser is
> working with xml data (or any other data
> that's not naturally represented by key=>value
> pairings).
[...]
> In so doing I've replaced the req->body table with new hooks in the
> parser.  The hooks will provide a simple iterator api together with 
> a means of converting the iterated-over elts into apreq_param_t's.  This
> additional level of indirection will allow us to continue support for 
> the current apreq_param(s)-related APIs by using the iterator api 
> internally (instead of searching the old req->body table).


What's the performance hit added by this transition? I'd hate to see the 
library slow down, just because it suddenly wants to parse xml.

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Mime
View raw message