Skip to content
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

Throughput performance improvements #3452

Merged
merged 5 commits into from
Sep 2, 2021
Merged

Conversation

Tyriar
Copy link
Member

@Tyriar Tyriar commented Sep 1, 2021

Fixes #3450

These changes boost the load test results from ~5MB/s -> ~16MB/s on my CPU (i5-4670K @3.4GHz)

This reduces GC from the const buffer workaround that avoids excessive getter access
with far less getter access

Part of xtermjs#3450
This seems to have been added in f6d5abf but it's not clear why, scroll APIs
seem to work fine without it and using a DOM API here is causing slowness
@Tyriar Tyriar added this to the 4.14.0 milestone Sep 1, 2021
@Tyriar Tyriar requested a review from jerch September 1, 2021 13:48
@Tyriar Tyriar self-assigned this Sep 1, 2021
@Tyriar
Copy link
Member Author

Tyriar commented Sep 1, 2021

Looks like I broke something 😄

@jerch
Copy link
Member

jerch commented Sep 1, 2021

Eww, maybe just a dangling old buffer ref somewhere (not updating at all needed places)?

Doesnt matter, the speed boost is more important 😈 ☺️

@Tyriar Tyriar merged commit b9b42ef into xtermjs:master Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate syncScrollArea taking up a lot of time even when the scrollback is full
2 participants