Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve line, col calculate performance by use move cursor on Pairs I…
…terator. (#754) * Improve line, col calculate performance by use move cursor on Pairs Iterator. ref: #707, #560 * Add benchmark for pair.line_col vs position.line_cole * Fix flat_pairs and pairs.next_back to use position.line_col * Merge line_col method to use `position::line_col`. * Fix `pair.line_col` for supports skiped characters, and add test for rev iter.
- Loading branch information
Showing
7 changed files
with
174 additions
and
14 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -360,6 +360,7 @@ pub mod prec_climber; | |
mod span; | ||
mod stack; | ||
mod token; | ||
|
||
#[doc(hidden)] | ||
pub mod unicode; | ||
|
||
|
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