-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to coalesce on insertion to read buffer.
Summary: This diff adds the ability to coalesce adjoining buffers sometimes on insertion into the read buffer, using the tail room. This only happens in the "rightward" case. E.g. if there's an existing buffer at offset [0, 1200) with 5000 bytes of tail room, and we are inserting a 1200 byte buffer, it will copy it to the tail and the buffer will become [0, 2400). To make this maximally useful we also have to make it so that the allocated packet buffers are over-allocated instead of packet-sized. Reviewed By: afrind, kvtsoy Differential Revision: D65394114 fbshipit-source-id: b92d466baa1d253f0c5854d679e97f14f523c7eb
- Loading branch information
1 parent
3705cba
commit 41ce128
Showing
6 changed files
with
245 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.