simdjson-java
simdjson-java copied to clipboard
Reduce size of buffer, stringBuffer and tape.
trafficstars
In class JsonValue, the default size of buffer and stringBuffer, as well as long[] tape in class Tape, is 34M. But in practice it's not necessary. This patch reduce the size of them from 34M to its actual size.
I believe in future, the JsonValue might be deep copied, thus the size of byte[] and long[] is important.