I'm looking for resources to understand how Java datatypes are implemented internally, and how libraries like Fastutil and Eclipse Collections provide faster implementations of the same. I tired looking through the codebases on Github (https://github.com/vigna/fastutil and https://github.com/eclipse/eclipse-collections respectively), but I've only understood that code generators are used.
But what code generators are used? How are they used? Why does the generated code perform better? Why aren't these the default implementations in Java if they perform better?
I'm looking for any kind of resources/reading lists which cover this topic. Youtube and Google haven't helped much.
Thanks