Skip to content

Throughput performance improvements#3452

Merged
Tyriar merged 5 commits intoxtermjs:masterfrom
Tyriar:perf_fixes
Sep 2, 2021
Merged

Throughput performance improvements#3452
Tyriar merged 5 commits intoxtermjs:masterfrom
Tyriar:perf_fixes

Conversation

@Tyriar
Copy link
Copy Markdown
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
Comment thread src/common/InputHandler.ts
@Tyriar
Copy link
Copy Markdown
Member Author

Tyriar commented Sep 1, 2021

Looks like I broke something 😄

@jerch
Copy link
Copy Markdown
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