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

Reply via email to