2009/7/21 Jim Andreou :
> 2009/7/21 Ricky Clarkson
>> > This is very intuitive to understand, but I'm not sure it could ever
>> > be faster than doing it with a mutable structure.
>> It can be, actually. The JVM is especially good at dealing with large
>> numbers of small very short-lived objects.
> Oh boy, if creating a large number of short-lived immutable objects is
> actually faster than creating a single mutable one, this must be Chuck
> Norris' JVM. :)
> (I'm all in for agreeing that such objects can be allocated and reclaimed
> very quickly, of course, but the above sounded a tad stronger... )