Re: Httparsed - fast native dlang HTTP 1.x message header parser

2020-12-14 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 15 December 2020 at 00:32:42 UTC, H. S. Teoh wrote: It may not be the fastest web module in the D world It actually does quite well, see: https://github.com/tchaloupka/httpbench (from the same OP here :) ) The header parser is nothing special, but since header parsing is a

Re: Httparsed - fast native dlang HTTP 1.x message header parser

2020-12-14 Thread H. S. Teoh via Digitalmars-d-announce
On Tue, Dec 15, 2020 at 12:11:44AM +, Adam D. Ruppe via Digitalmars-d-announce wrote: > On Monday, 14 December 2020 at 21:59:02 UTC, tchaloupka wrote: > > * arsd's cgi.d - I haven't expected it to be so much slower than > > vibe-d parser, it's almost 3 times slower, but on the other hand > >

Re: Httparsed - fast native dlang HTTP 1.x message header parser

2020-12-14 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 14 December 2020 at 21:59:02 UTC, tchaloupka wrote: * arsd's cgi.d - I haven't expected it to be so much slower than vibe-d parser, it's almost 3 times slower, but on the other hand it's super simple idiomatic D (again doesn't check or allow what RFC says it should and many tests

Httparsed - fast native dlang HTTP 1.x message header parser

2020-12-14 Thread tchaloupka via Digitalmars-d-announce
Hi, I was missing some commonly usable HTTP parser on code.dlang.org and after some research and work I've published httparsed[1]. It's inspired by picohttpparser[2] which is great, but instead of a binding, I wanted something native to D. Go has it's own parsers, Rust has it's own parsers,