Skip to content

Address performance regression #1427

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jul 22, 2024

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
5 checks passed
@CKolkey CKolkey deleted the fix--performance-regression-of-loading-diffs branch July 22, 2024 19:37
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant