Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite the core of parse_short_policy() to be faster.
The old implementation did some funky out-of-order lexing, and tended to parse every port twice if the %d-%d pattern didn't match. Closes ticket 28853.
- Loading branch information
1 parent
f8dac5c
commit 3dd1f06
Showing
2 changed files
with
45 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
o Minor features (performance): | ||
- Replace parse_short_policy() with a faster implementation, to improve | ||
microdescriptor parsing time. Closes ticket 28853. |
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