json-iterator / go

A high-performance 100% compatible drop-in replacement of "encoding/json"
http://jsoniter.com/migrate-from-go-std.html
MIT License
13.43k stars 1.03k forks source link

Unmarshalling float with lots of digits can cause >= 2 allocations per number #601

Open philpearl opened 2 years ago

philpearl commented 2 years ago

We can fix this with a little bit of scratch space.