-
-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basically found a way to create a configurable iterator that doesn't take more than the previous approach using several different iterators. This easily allowed a much cheaper iterator that just returns Cursor objects to be made, and used specifically in the :nth(*) and :nth(*-1) cases, which are now about 2x as fast (for a regexp with 10 matches) because only on the last pulled value a .MATCH needs to be done. Also built the infrastructure to support iterators returning Str and Pairs with from/length information, for later usage in .comb and .subst.
- Loading branch information
Showing
1 changed file
with
81 additions
and
63 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