-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
get_split
with split_first_chunk
builtin
[`split_first_chunk`][0] is a nightly only builtin. It looks like it will be [stabillized soon][1], so I decided to use it and copy over the implementation in the meantime. Amusingly, benchmark show a consistent 3% improvement to throughput compared to using `get_split`. [0]: https://doc.rust-lang.org/std/primitive.slice.html#method.split_first_chunk [1]: rust-lang/rust#117561
- Loading branch information
1 parent
65bd6f1
commit 63cccd9
Showing
2 changed files
with
43 additions
and
17 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