-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performance: Eliminate Regex overhead in AvoidTrailingWhitespace -> S…
…peedup of 5% (PowerShell 5.1) or 2.5 % (PowerShell 7.1-preview.2) (#1465) * Improve performance by not using regex (2% improvement) * replace regex * fix index and simplify * tidy * Apply suggestions from code review Co-Authored-By: Robert Holt <[email protected]> * Use IsWhiteSpace Co-authored-by: Christoph Bergmeister <[email protected]> Co-authored-by: Robert Holt <[email protected]>
- Loading branch information
1 parent
3e6987b
commit 6fa29cb
Showing
1 changed file
with
53 additions
and
36 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