[nycphp-talk] rtrim broken?
Allen Shaw
ashaw at polymerdb.org
Wed Nov 1 10:53:10 EST 2006
Dell Sala wrote:
> BTW: if this string is build by a loop, there is another idiom that I
> find cleaner than stripping off the last separator: Build text as an
> array, then implode it.
Some informal benchmarking on my own showed that creating and imploding
the array generally takes longer than appending and stripping, depending
on the number of iterations in the loop: for fewer iterations, use
append-and-strip; for more iterations, use and array and implode.
--
Allen Shaw
Polymer (http://polymerdb.org)
More information about the talk
mailing list