acid
acid copied to clipboard
structlib: more efficient encoding buffer management
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.