acid icon indicating copy to clipboard operation
acid copied to clipboard

structlib: more efficient encoding buffer management

Open dw opened this issue 10 years ago • 0 comments

Consider:

  • Track the maximum output size of any struct on a per-StructType basis, and use that as StringBuffer's size hint.

By abusing TLS, could change the interface to return a buffer, and simply have one serialization buffer per thread, avoiding any allocation or final copy entirely.

dw avatar Oct 26 '14 17:10 dw