-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The switch from enumberate() to a regular loop is actually slower for the single-stepping case, but the performance gains from being able to skip large chunks of data with minimal comparisons more than makes up for it. This is the most basic optimization for this type of algorithm and this is the simplified version of it. If we're not in a match, check 20 characters ahead and if that also isn't a match, skip 20. If it is a match, then just continue on with checking each byte.
- Loading branch information
Showing
2 changed files
with
14 additions
and
2 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