5 ms·
Later JVMs do escape analysis, though - so there's not necessarily any difference between the two methods...
by njw45 15y ago
Later JVMs do escape analysis, though - so there's not necessarily any difference between the two methods...
- m_myers 15y agoAt least in Oracle Java 1.6 update 24, which is supposed to have escape analysis enabled by default, it is a huge difference. I don't know if Java 7's analysis is smarter.