Adding support for IOBuf coalesce with certain headroom and tailroom
Summary: We need this in wormhole, as the capacity of the IOBuf may be very large, but, the data length is much smaller. Current implementation of coalesce() allocates large amount of memory unnecessarily. Adding methods to be able to set headroom and tailroom during coalesce. Reviewed By: yfeldblum Differential Revision: D10386802 fbshipit-source-id: a0d787f41ed195eef409b942aaad583fc22692a3
Showing
Please register or sign in to comment