Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  > (that explains why node.js is a bit faster than Go for handling HTTP requests at the moment)
Pretty sure node's http parsing is handled by http-parser[1], which is written in C (originally pulled from nginx as I recall).

Go's http parser is written in Go.

[1]: https://github.com/joyent/http-parser



If I remember correctly the initial versions of node had the ragel-based http parser from mongrel but then ryan rewrote it. http-parser is hand-written.


maybe not entirely hand written? source[1]

[1]: https://github.com/joyent/http-parser/blob/master/LICENSE-MI...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: