Hmm, by switching from .substring() to .slice() in a key part of the code, jsdom sped up a real-world benchmark from 43 seconds to 230 ms (187x). @v8js, seems weird?https://github.com/jsdom/jsdom/pull/2419 …
It turns out the slow case in jsdom was calling String#substring(start, end) where start === end (resulting in the empty string). An optimization for this specific case just landed in @v8js: https://chromium-review.googlesource.com/c/v8/v8/+/1365282 …
7:00 AM - 6 Dec 2018
0 replies
5 retweets
16 likes
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.