3 ms·
> would significantly reduce the engine's performance (ranging, depending on the type of workload, from 1.5–10× or more for computationally intensive tasks). A
by grishka 3y ago
> would significantly reduce the engine's performance (ranging, depending on the type of workload, from 1.5–10× or more for computationally intensive tasks).
And the downside being?
Seriously, JS was never meant to be performant. In the real world, it's very rarely used for anything computationally intensive.
- zamadatix 3y agoPower usage
- grishka 3y agoJIT compilation isn't free either.
- troupo 3y agoGoogle already says that 2.5 seconds to Largest Contentful Paint is fast: https://blog.chromium.org/2020/05/the-science-behind-web-vitals.html https://blog.chromium.org/2020/05/the-science-behind-web-vit... Now multiply that by 1.5x.
- grishka 3y agoRendering pages server-side and avoiding 5-megabyte bundles might help with that. JIT and other browser-side performance optimizations just delay the problem anyway. The culture around web development needs to change.
- jrajav 3y agoVery curious what your unique definition of 'computationally intensive' is, that manages to not include one of the most significant computational workloads worldwide, both in terms of absolute volume and impact on human productivity. Namely, web browser rendering performance.
- grishka 3y agoHuh? The rendering is part of the browser itself. It's not like JS has to run every frame to put the pixels onto the screen. Making ajax requests and doing things to the DOM tree isn't a "computational workload" because there's hardly any computation happening in that JS code.
- ksec 3y agoOnly if we could have HTMX or Turbo that doesn't rely on JS. And then for 95%+ of website, most JS code are used for tracking and ads.
- eyelidlessness 3y ago> Seriously, JS was never meant to be performant. If you mean “wasn’t originally meant”, that might be true. But it’s been meant to be performant for quite a long time, with huge investments behind the realization of that intent. It’s fine if you have nostalgia for whatever you think was the original vision behind JS. But that hasn’t been the operating vision for it for many years.
- binary132 3y agoit’s really important so that Facebook can be fast (Facebook is still slow)