Instead of always allocating a fixed size buffer (1,000,000 bytes currently), it should leverage the upfront knowledge of total size of the metadata and allocate Math.min(DEFAULT_BUFFER_LEN, metadata.length()).
The text was updated successfully, but these errors were encountered:
Instead of always allocating a fixed size buffer (1,000,000 bytes currently), it should leverage the upfront knowledge of total size of the metadata and allocate
Math.min(DEFAULT_BUFFER_LEN, metadata.length()).The text was updated successfully, but these errors were encountered: