3 ms·
> Java literally has a JIT to make generics fast ??? By the time it gets to the JIT, java generics have long since been erased. Java's generic classes run at
by yarg 4y ago
> Java literally has a JIT to make generics fast
???
By the time it gets to the JIT, java generics have long since been erased.
Java's generic classes run at the same speed as everything else, because there's no actual generics there.
(Although I'd be very surprised if this doesn't change in the near future: https://openjdk.org/jeps/8261529 https://openjdk.org/jeps/8261529.)
- saagarjha 4y agoI mean, they’re definitely not specialized and optimized before they hit the VM.