3 ms·
>and JavaScript execution is usually the dominant consumer of memory. That's forgetting the DOM, which is often the actual cause for slowness & memory consumpt
by bru 12y ago
>and JavaScript execution is usually the dominant consumer of memory.
That's forgetting the DOM, which is often the actual cause for slowness & memory consumption, but gets far less spotlight than JavaScript. This is also a reason why a framework like react.js is so interesting: it circumvents the real DOM when computing (on a virtual DOM), and only applies the end result.
- nnethercote 12y agoIn my experience, JS memory usage is nearly always much higher than DOM. For example, my current Firefox session has 16 tabs open and ABP enabled. JS memory usage is over 600 MiB, whereas DOM memory usage is only 120 MiB.