From: lasitha Date: 2009-03-06T01:03:01+09:00 Subject: Re: Cut a string each 80 character On Thu, Mar 5, 2009 at 6:03 PM, Robert Klemme wrote: > On 05.03.2009 12:32, lasitha wrote: >> >> Doesn't appear to be. >> http://gist.github.com/74249 >> > > > There is an inconsistency in your test: the gsub version creates the second > argument to gsub over and over again.  You should rather define a constant > for that as well.  You could do that as well for the sanity check string. Yes, thank you for the pointers. In this case the change didn't seem to make any significant difference on my box, but the wisdom is gratefully accepted. Cheers, lasitha.