Description
The SegmentWriter uses an initial buffer size of 256k for reading input streams binaries that need to be persisted, then it checks if the input is smaller than 16k to verify if it can be inlined or not. [0]
In the case the input binary is small and can be inlined (<16k), the initial buffer size is too wasteful and could be reduced to 16k, and if needed increased to 256k after the threshold check is passed.