4 ms·
Those casts are still there. The compiler puts them in and the JVM has to execute them.
by mcculley 8y ago
Those casts are still there. The compiler puts them in and the JVM has to execute them.
- icedchai 8y agoYes. And my point is they'd be there anyway, with or without generics. It's not "generics" making the JVM any slower.
- mcculley 8y agoIf the types were reified, the compiler and the JVM would know what type was there. No cast would be needed.
- MaxBarraclough 8y ago> they'd be there anyway No. That's the point.