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.
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.