FastURL is a Go URL parser using a Ragel state-machine instead of regex, or the built in standard library url.Parse
.
S P E E D
See our tests
goos: linux
goarch: amd64
pkg: github.com/ImVexed/fasturl
BenchmarkRegex-32 464509 2557 ns/op 530 B/op 3 allocs/op
BenchmarkRagel-32 5350304 225 ns/op 96 B/op 1 allocs/op
BenchmarkStd-32 2225313 537 ns/op 128 B/op 1 allocs/op
PASS
ok github.com/ImVexed/fasturl 4.405s
Lots of goto's and determinism, feel free to zoom
maximecaron - Creating the initial ragael parser