@mathias question: calling Array.apply(null,{length:10}) to create an array of fixed length will lose any of the element kinds optimizations?
The resulting array would have `PACKED_ELEMENTS` as its elements kind. Packed is better than holey!
-
-
and if later it's filled only with small integers? would it still be a PACKED_SMI_ELEMENTS?
-
PACKED_SMI_ELEMENTS is more specific than PACKED_ELEMENTS. It’s not possible to transition upwards in the lattice

- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.