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

Replaced slices with arrays where appropriate #557

Open m-manu opened 3 years ago

m-manu commented 3 years ago

Replaced slices with arrays at places in code that matched all 3 criteria:

  1. length is fixed (doesn't need to change throughout the lifecycle of the program)
  2. length is known at compile time
  3. isn't passed to another method as a parameter
m-manu commented 3 years ago

This has been open for a couple of months now. Aren't maintainers looking at pull requests? 🤔