simdjson-java icon indicating copy to clipboard operation
simdjson-java copied to clipboard

Reduce size of buffer, stringBuffer and tape.

Open ZhaiMo15 opened this issue 1 year ago • 1 comments
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.

ZhaiMo15 avatar Apr 12 '24 09:04 ZhaiMo15

I believe in future, the JsonValue might be deep copied, thus the size of byte[] and long[] is important.

ZhaiMo15 avatar Apr 12 '24 09:04 ZhaiMo15