-
Notifications
You must be signed in to change notification settings - Fork 656
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ByteBuffer: small & medium sized string copies over 10% faster (#640)
Motivation: urbp[start ..< end] is quite a bit faster than when done in two operations urbp.dropFirst(start).prefix(length). This improves small (4 bytes) & medium sized (24 bytes) String copies by over 10%. Good for HTTP headers etc. Modifications: replace urbp.dropFirst(start).prefix(length) by urbp[start ..< start + length] Result: small & medium sized String copies faster
- Loading branch information
Showing
1 changed file
with
8 additions
and
12 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