3 ms·
HTTP parsing can be very fast, the article doesn't really show that it is slow. Their use case of 'If logging is switched off and all content is in cache, then
by joosters 11y ago
HTTP parsing can be very fast, the article doesn't really show that it is slow. Their use case of 'If logging is switched off and all content is in cache, then HTTP parser becomes the hottest spot' is hardly surprising. All that's left is to read() the request and write() the response, the parsing is everything that remains.
- MichaelGG 11y agoGoogle seems to disagree, and this is a main reason HTTP2 uses a proper binary format. And it concurs with my keen experience, having written a proxy and indexer for SIP, which shares most of HTTP's parse design. The simple fact that there's more bytes involved means there gonna be more work. Add to that the inane "human writeable" rules like line folding and it's a mess.