-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance of readuntil (#20621)
* Improve performance of readuntil using strings * Add backtracking * Improve performance of readuntil using strings Heavily inspired by omus and #20621 * Revise test to be completely unoffensive Looking over my original test I realized it potentially could be offensive. I've used a different example to avoid any potential issues. * readuntil with on-the-fly backtrack caching Caches backtracking information as it is needed. Using a SparseVector which has a lower memory footprint than Vector but is more performant than Dict. * Add unicode test for readuntil Skip testing the I/O producers "File" and "PipeEndpoint" when working with unicode. * Remove need for readuntil file * [wip] reduce code duplication, allow generalized Int indexes * refactor into single method instead of a type, makes it possible to use readuntil with any array (indexable) object and optimizes a few more cases
- Loading branch information
Showing
4 changed files
with
116 additions
and
37 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
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