-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add matchIndex parameter to addMatch.
This allows us to splice things like `-emph` into the appropriate place in the match list, avoiding the need to sort the whole list in getMatches. This yields ~ 20% speed increase in inline-heavy text. See #13.
- Loading branch information
Showing
1 changed file
with
48 additions
and
20 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