This repository has been archived by the owner on Aug 23, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raw header optimisations: smallvec and tendril.
I’m planning to use tendril for zero-copy header handling; while I’m on the topic of optimisation, optimising for the most common case of a header occurring only once in a message by using a `SmallVec<[ByteTendril; 1]>` there makes sense too. End result: the average raw header will (when combined with a tendril-backed parser) require zero allocations instead of three (header name, vector of values and value). This should be a comparatively large performance win.
- Loading branch information
1 parent
adfed15
commit a583f14
Showing
4 changed files
with
60 additions
and
31 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