Skip to content

Conversation

niik
Copy link
Member

@niik niik commented Nov 20, 2024

Closes #15586
Closes #9049
Closes #6230

Description

Thanks to a slew of updates to dugite and desktop we're able to lift the limit on Git status output from 20Mb to essentially unrestricted (i.e. governed by available memory).

V8 has a string size limitation of 500Mb but even if it was possible to hit that with a status output we're leveraging the new encoding support in dugite to read the status output as a buffer. This isn't intended to allow for ~.5Gb status output (that experience would be unbearable in Desktop) but rather to ensure we're not retaining a large string unnecessarily by creating a bunch of substrings pinning the large string to their lifetime.

Screenshots

Release notes

Notes:

Copy link
Contributor

@tidy-dev tidy-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice culmination of changes!

@niik niik merged commit e4ee869 into development Nov 21, 2024
7 checks passed
@niik niik deleted the this-is-how-you-have-a-bad-time branch November 21, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants