Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use native indexOf whenever possible
This uses a windowing approach to determine how much of a buffer can be searched by the native indexOf when searching. It falls back to JS when it hits a boundary and if there is no available native search window. I'm pretty sure a BufferList can't be searched drastically faster than this. Actual performance needs to be measured.
- Loading branch information
Showing
3 changed files
with
500 additions
and
488 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
Oops, something went wrong.