Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item13893: Help out standard escapes
- Loading branch information
Showing
2 changed files
with
20 additions
and
24 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
409b0f4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a bad patch. I can't picture this being a performance improvement: (1) there's a sub being called as part of the regex match - best practice is to avoid them as good as possible (2) the same string is checked multiple times - as a regex and then using one or more EQs inside mysubst(). Last but not least a rather simple task has resulted in now overly complex code just to map some strings.
409b0f4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.