Actually, I'm not sure that performance is the big issue in HTTP parsing, but google for a few interviews with Zed, and you will notice immediatly that he talks much about the security in a parser generated from a formal description instead of hand crafted code. According to him, it seems his parser even stop some attacks that Apache HTTPD let's through...
/O At 13:16 2006-06-19, you wrote: >What am I missing? HTTP parsing is trivial? I can't imagine why generated >code is need, or that it could be a signifcant factor in performance. > > >On Monday 19 June 2006 04:00, Ola Bini wrote: > > Hi, > > > > I've been peeking at Mongrel again, trying to figure out the best way to do > > this. There are 3 parts of the C library in http11: the ternary search > > tree, the generated http parser and the C ruby-code to bind these together > > into the classes Mongrel::HttpParser and Mongrel::URIClassifier. > > Now, the TST is no problem to port, it's max 2 hours work. The same goes > > for the C code for knitting everything together; not many hours work. The > > problem has been the generated parser. I have examined the output from it, > > and it's really not that advanced. Of course, a hand crafted parser might > > work, but on the other hand we can actually use Zed's Ragel-definitions and > > a BNF-to-Java tool to create a good parser based on that information. This > > seems like the right way to go for me. I won't have any time to do it the > > next week, though, so if someone has any free time, please go ahead! =) > > > > Regards > > Ola Bini > > > > > > > > > > _______________________________________________ > > Jruby-devel mailing list > > Jruby-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/jruby-devel > > >_______________________________________________ >Jruby-devel mailing list >Jruby-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/jruby-devel _______________________________________________ Jruby-devel mailing list Jruby-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jruby-devel