@smashingconf question for @mathias:
const arr = [];
let i = length;
while (i--) arr[i] = whatever;
Does are therefore become a holy array and deopt?
-
Show this thread
-
I don't know about V8 off-hand here, but my memory of JS VMs generally here is that whether or not that is holy depends on the value of `length`; arrays under a certain length are never holy.
1 reply 0 retweets 1 like -
-
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.
+ZWJ+