Ответ: Busybox httpd: sub directory config file

Denys Vlasenko vda.linux at googlemail.com
Sat May 2 13:46:11 UTC 2009


On Saturday 02 May 2009 12:06, Vladimir Dronnikov wrote:
> How do I get the patch?

I didn't understand you.

> 2009/5/2, Denys Vlasenko <vda.linux at googlemail.com>:
> > On Wednesday 22 April 2009 12:09, Vladimir Dronnikov wrote:
> >> >
> >> > Well, what I want to do is to rewrite it so that it
> >> > does not look insane. As of now, /* This could stand some work */
> >> > comment is an understatement.
> >>
> >> httpd is _the only_ AFAIKS that goes old way of parsing. Just FYI.
> >
> > httpd needs to parse these strings fast, since
> > it does this on every request and on every httpd.conf line,
> > and sometimes people want their web servers to be fast.
> >
> > Using unified parser will result in extra malloc's
> > and copies. I don't want this to happen.
> >
> > I re-wrote existing parser in httpd.c,
> > now it does not look so ugly, is smaller by hundreds of bytes,
> > and does not incur any malloc or memcpy
> > overhead needlessly. It looks "good enouhg" for me.
> >
> > Maybe it is possible to write an mmap-based parser
> > which will be even faster. Maybe we even had one. Or was that
> > Rob's patch? I forgot...

--
vda


More information about the busybox mailing list