-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrote Sanitize function for major performance gains
I rewrote the Sanitize function from scratch, replacing the original complex RegEx expressions with simple string comparisons. In my opinion, this greatly increases the readability of the code when you don't have to try to understand RegEx expressions. It also reduces the overhead of creating and executing RegEx when string comparisons are much faster in this application. Performance testing before and after the rewrite was showing the new version running 5 to 10 times faster!
- Loading branch information
1 parent
bd92f7a
commit d88ea89
Showing
1 changed file
with
151 additions
and
138 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