Hi @ChromiumDev, previously code like `new ArrayBuffer(LARGE_NUMBER)` took several hundred milliseconds to execute. With todays Canary it doesn’t even take a single millisecond. How is that possible?
-
-
Some time ago I noticed that it can (sometimes) take some time to allocate an ArrayBuffer (or TypedArray). To avoid any delay on the main thread I created https://github.com/chrisguttandin/async-array-buffer … . It can be used to allocate an ArrayBuffer in a worker. It then sends it back as a transferable.
-
Thanks for the link
@hooraybuffer . Do I understand that correctly that v8 will now use pre-initialized memory? What happens if (for whatever crazy reason) there is no pre-initialized memory left to use? - 7 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.