Girocco/HashUtil.pm: speed up by an order of magnitude
commit8fdbe5c05109a5fd78e094c15cdcfa505e62147c
authorKyle J. McKay <mackyle@gmail.com>
Sat, 12 Dec 2020 18:38:47 +0000 (12 11:38 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 12 Dec 2020 18:38:47 +0000 (12 11:38 -0700)
tree23b539e857fccc1c9f6ea79d9b65ca435f68d196
parentcd9371db878540da2509a744dd0ba27448e486eb
Girocco/HashUtil.pm: speed up by an order of magnitude

The perl transliteration operator (tr/// aka y///) runs much,
much, much more quickly than a global pattern substitution.

Replace the various global substitution patterns with
suitable transliteration operations to vastly speed up the
computation of the result.

Speed is roughly 10x faster with these changes.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/HashUtil.pm