Move color selection out of the for loop
commit312f943143a6d5a7d2ae6c4c6884c99a155cad94
authorThomas Guyot-Sionnest <dermoth@aei.ca>
Wed, 5 Aug 2015 03:05:07 +0000 (4 23:05 -0400)
committerThomas Guyot-Sionnest <dermoth@aei.ca>
Wed, 5 Aug 2015 03:05:07 +0000 (4 23:05 -0400)
tree36ca4f1703261e6831b6907eb5570f5ec4b4f0b7
parent4122fd13bd5e759a53a5005d6301a8fe5f7aec73
Move color selection out of the for loop

There is no point in building the sed script for every line, since it's
the same parameters every time. This seems to provide about 2x speed
improvement.
scripts/colorize.sh