httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: bucket brigades and IOL
Date Thu, 18 Nov 1999 22:48:15 GMT
Dean Gaudet wrote:
> 
> On Sat, 13 Nov 1999, Ben Laurie wrote:
> 
> > Also, the usual objections still apply - i.e. it is awkward to do things
> > like searching for particular strings, since they may cross boundaries.
> > I'm beginning to think that the right answer to this is to provide nice
> > matching functions that know about the chunked structures, and last
> > resort functions that'll glue it all back into one chunk...
> 
> yeah, we use a zero-copy library at criticalpath and we frequently run
> into the case where we want to do some string-like operation on data in
> the zero-copy datastructure.  you end up having to either copy it to a
> regular C string, or re-write all of the string functions.  consider
> flex... or a regex library... neither work terribly well in the face of a
> zero-copy abstraction because they don't have the equivalent of
> writev()/readv().
> 
> but.  if apache had it, maybe we would see more libraries start to adopt
> iovec-like interfaces... dunno.

Well, its not as if there's a really huge number of string functions,
and regex is far and away the hardest.

Someone needs to bite that bullet!

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi

Mime
View raw message