Mikhail Loenko wrote:
I believe to have read that some of the optimizations that went into Java 5 was the construction of the stacktrace in an exception.The times were: test1: 60 test2: 12500 test3: 700So, the most performnace-expensive operation is creating a new object.
So I think it is not as much the object but more all the track keeping that is expensive.
-- Thorbjørn
