4 ms·
Hopefully Project Valhalla will make this easier :) JEP 218 (Generics over Primitive Types)[0] allowing Map<Key, int> without the performance penalty of boxing
by matthews2 5y ago
Hopefully Project Valhalla will make this easier :)
JEP 218 (Generics over Primitive Types)[0] allowing Map<Key, int> without the performance penalty of boxing, and the Value Objects JEP[1] allowing the record in the example to become a value type.
[0]: https://openjdk.java.net/jeps/218 https://openjdk.java.net/jeps/218
[1]: https://openjdk.java.net/jeps/8277163 https://openjdk.java.net/jeps/8277163
- deleted 5y ago[deleted]