Skip to content

Conversation

@CKolkey
Copy link
Member

@CKolkey CKolkey commented Jul 22, 2024

When loading very very large diffs, appending to the output buffer would perform way way way too much string allocations/rehashing.

To address this, we can stop appending output to this buffer after 300 lines. It may be worth pursuing not appending anything to this buffer at all unless it's a PTY process, but that can be looked into later.

appending to the output buffer would perform way way way too much string
allocations/rehashing.

To address this, we can stop appending output to this buffer after 300
lines. It may be worth persuing not appending anything to this buffer at
all unless it's a PTY process, but that can be looked into later.
@CKolkey CKolkey merged commit a606b75 into master Jul 22, 2024
@CKolkey CKolkey deleted the fix--performance-regression-of-loading-diffs branch July 22, 2024 19:37
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.

2 participants