Andreas Delmelle wrote:
On Jul 14, 2008, at 18:15, Andreas Delmelle wrote:
snip /
Just quickly ran Jeremias' test-app myself, and on Apple JVM (1.5), the
difference is +/-300ms for a million iterations, but not very
consistent. Sometimes StringBuffer operates slightly faster, other times
On Jul 15, 2008, at 09:16, Peter B. West wrote:
Andreas Delmelle wrote:
snip /
Come 1.5, you get StringBuilder.
Yep, this indeed becomes /the/ weapon of choice for building strings
(in single-threaded context), if that's the goal.
For FOText, I don't think that is the goal. We're simply
On Jul 14, 2008, at 08:44, Jeremias Maerki wrote:
I noticed that Andreas used CharBuffer in his initial patch for
#45390.
I was curious about the performance implications, so I wrote a little
micro-benchmark. The results:
snip /
So this is a single-threaded test. It might perform differently
On Jul 14, 2008, at 18:15, Andreas Delmelle wrote:
snip /
Just quickly ran Jeremias' test-app myself, and on Apple JVM (1.5),
the difference is +/-300ms for a million iterations, but not very
consistent. Sometimes StringBuffer operates slightly faster, other
times it's CharBuffer that