Custom bufSize to avoid bytes.makeSlice
Author: hmliCreated Jan 17, 2020Updated Jan 21, 2025
Now the bufSize is 512. bytes.makeSlice will happen when the json size is larger than bufSize. If most of my json are larger than 512, I want to set it to a larger size, let's say, 4096 to avoid alloc space. Could you support this feature?
Source: json-iterator/go