in reply to Re^2: More efficient way to truncate long strings of the same character
in thread More efficient way to truncate long strings of the same character

Aye, there's the trouble with starting with a quick and dirty design then accreting bits on to it. :(

The validation step is important as a check that the tested code is behaving as advertised, but can introduce extra benchmarked code that is unrelated to the code being tested. If I get time I'll revisit the code and fix it, but it may take a while before I get to it.


Perl reduces RSI - it saves typing
  • Comment on Re^3: More efficient way to truncate long strings of the same character