]> git.donarmstrong.com Git - perltidy.git/commit
switch from a regex to hash test
authorSteve Hancock <perltidy@users.sourceforge.net>
Sat, 21 Jan 2023 23:37:32 +0000 (15:37 -0800)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sat, 21 Jan 2023 23:37:32 +0000 (15:37 -0800)
commitff4edf511da4259de6b5862c09d00c2add751123
tree2667aa0e77554bd3727fbe960102fd5736db23ff
parent69124c09d6547af09daaba0848b0c4866b729e40
switch from a regex to hash test

On my standard test case, this reduced the run time of
an if test from about 40 ms to 4 ms.
lib/Perl/Tidy/Formatter.pm