Mikhail Loenko wrote:

The times were:
test1: 60
test2: 12500
test3: 700

So, the most performnace-expensive operation is creating a new object.
I believe to have read that some of the optimizations that went into Java 5 was the construction of the stacktrace in an exception.

So I think it is not as much the object but more all the track keeping that is expensive.

--
 Thorbjørn

Reply via email to