3 ms·
> I only thought the erasure was bad because of how Java lacked value types (so my list of T will use heap boxes when T is int). That's covered by a sibling va
by shellac 9y ago
> I only thought the erasure was bad because of how Java lacked value types (so my list of T will use heap boxes when T is int).
That's covered by a sibling valhalla feature called 'generic specialisation'. See http://openjdk.java.net/jeps/218 http://openjdk.java.net/jeps/218.
- alkonaut 9y agoYeah that looks like an excellent step (and one that should have been taken around the same time as .NET 2 was released). Getting better performance from a MyIntList than from an ArrayList<int> is such a horrible design smell.