mkeskells commented on PR #3746: URL: https://github.com/apache/avro/pull/3746#issuecomment-4435636187
I did notice that the bytes for the schema gets allocated 3 times 1. in a `ByteBuffer` 2. in a `byte[]`, copies to the header 3. in a `String` to parse (or cache) https://github.com/apache/avro/pull/3776 removes one of these, but it seems a waste to have the schema stored twice in the header, both as a schema and a byte[]. Are there any use cases where the schema is read post construction of the stream?, and if so could we just store the schema and regenerate the byte[] if needed. This would reduce the allocation and the retained size in an application WDYT? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
