js-mythbusters
js-mythbusters copied to clipboard
:ghost: STHAP js, where is my perf?
**Context** Node is single threaded. That is a very simple explanation of how it works. There is a thread pool to manage file handles. Two event loops, the main one...
https://blog.sessionstack.com/how-javascript-works-inside-the-v8-engine-5-tips-on-how-to-write-optimized-code-ac089e62b12e
Related: - https://github.com/hyperandroid/JSVMLinks - https://www.youtube.com/watch?v=EdFDJANJJLs
- Caching DOM selector - moar Related: http://www.w3schools.com/js/js_performance.asp I'm sure that @rstacruz know more tips in this are than me 😄 .
- https://blog.sessionstack.com/how-javascript-works-inside-the-v8-engine-5-tips-on-how-to-write-optimized-code-ac089e62b12e - https://medium.com/dailyjs/understanding-v8s-bytecode-317d46c94775
Reading about Proxies at https://hacks.mozilla.org/2015/07/es6-in-depth-proxies-and-reflect/ I found a very nice WeakMaps usage example: > Proxies ♥ WeakMaps. In our readOnlyView example, we create a new proxy every time an object...
**Improved code caching** `V8 uses code caching to cache the generated code for frequently-used scripts. Starting with Chrome 66, we are caching more code by generating the cache after top-level...
**Description** Would be great to talk about how .toString() is used, it's recently been updated in the latest V8 release. `Function.prototype.toString() now returns exact slices of source code text, including...
Hey, very nice initiative and website 👏 The `items.length` part in [Variable access](https://mythbusters.js.org/#/workflow/variable-access) is *not always true* and even probably wrong for your example. Most modern VMs apply [loop-invariant code...