inlining and string concatenation
Bryce McKinlay
bryce@albatross.co.nz
Mon May 1 15:57:00 GMT 2000
Tom Tromey wrote:
> It seems to me that we could allocate the String[] (or the C++
> equivalent, really -- we don't need the object header) on the stack.
> Since string concatenation behavior is largely known at compile time,
> we can just have "tmp[slot] = <whatever>.toString()" directly
> generated by the compiler.
Yes. I just wanted to point out that even my naive implementation did a
lot better than the existing one, so this is a big performance hotspot.
regards
[ bryce ]
More information about the Java
mailing list