I wonder if they could have used Smallvec, it sounds like the best of both worlds for performance: stack allocated up to a size.
Off-topic but the JVM will be the second platform to get const generics support -> https://www.reddit.com/r/java/comments/m2dfb5/parametric_jvm...
Are there other languages than rust that supports it?