-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[xterm-addon-web-links] Typing with link highlighted causes serious performance impact #4845
Comments
@raiden-dev Thx for finding this one, can repro it as long as the typed content adds the the link while the link is hovered. This really feels like some exp runtime issue, the perf degrades really fast. Interesting sidenote - the perf resets if I re-hover the link and continue typing. From a first glance at devtools it seems the time gets eaten in this method: xterm.js/src/browser/Linkifier2.ts Lines 257 to 268 in a5646a5
but that code looks rather innocent to me. Maybe there is something off with |
I cannot repro it on our demo, works with all renderers as expected not showing any quadratic/exp runtime growth. This is somewhat weird, as there were no substantial code changes to the linkifier or the web-links addon almost in a year. @Tyriar My best guess here is, that this was also solved with #4814. Gonna close the issue, as master does not exhibit the toxic growth anymore. |
Yep #4814 was a pretty bad bug. |
Details
"xterm": "^5.3.0
,"xterm-addon-web-links": "^0.9.0"
.Steps to reproduce
WebLinksAddon
fromxterm-addon-web-links
package.Here's the traced performance profile: Trace-20231014T084401.json
The text was updated successfully, but these errors were encountered: