minio / simdjson-go

Golang port of simdjson: parsing gigabytes of JSON per second
Apache License 2.0
1.8k stars 85 forks source link

Remove parseint allocs #37

Closed klauspost closed 3 years ago

klauspost commented 3 years ago

Since we have control over the byte slice we are parsing we can use an unsafe conversion when parsing numbers. This reduces allocs, often by more than an order of magnitude.

Good solid speedup and importantly less allocs.

Benchmarks are updated and diff reflects performance change.

Allow others to have access to the previous structure for potential reuse.