Performance boosts in @v8js v7.6 / Chrome 76:
JSON.parse
Frozen/sealed arrays
https://v8.dev/blog/v8-release-76 …
-
-
Trying to get a feel for when to use Object.freeze. Any reason not to use it willy nilly whenever I want to pass around an immutable object? We also can enforce this in TypeScript afaik. More fast paths in v8 for operations on frozen objects perhaps?
1 reply 0 retweets 0 likes -
The simple answer is: use it when it makes sense, i.e. whenever you need to enforce the immutability. I wouldn’t use it *only* to try and hit fast paths in any particular engine. As the blog post explains, we’re only just starting to add them.
1 reply 0 retweets 2 likes
In general, focus on writing readable code, and let us worry about making it fast!
12:36 AM - 24 Jun 2019
0 replies
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.