InMessage is initialized with a storage allocated before reads (#110)
Fixes #109. In #102, the storage of the InMessage gets allocated every time it's being read, which is expensive and caused issues like https://github.com/GoogleCloudPlatform/gcsfuse/issues/563. So, this change moves the allocation to its own function, called only once when the struct is initialized before the reads.zerocopy-examples
parent
c75d3f26fc
commit
8da59ba998
Loading…
Reference in new issue