Skip to content

Conversation

@camc314
Copy link
Contributor

@camc314 camc314 commented Aug 15, 2025

This reduces an allocation when converting strings to lower case.
With how we are currently using project services, this function is called a ridiculous number of times, so avoiding an allocation here, allows for much less GC pressure, improving the perf of the linter.

Ref: microsoft/typescript-go#1575

Copy link
Contributor Author

camc314 commented Aug 15, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@camc314 camc314 marked this pull request as ready for review August 15, 2025 15:11
@camc314 camc314 requested a review from Boshen August 15, 2025 15:11
@Boshen
Copy link
Member

Boshen commented Aug 15, 2025

We should have a tracking issue to remove this later in the future, assume we will rearchitect and no longer call this function so many times.

@Boshen Boshen merged commit 63e800e into main Aug 15, 2025
6 checks passed
@Boshen Boshen deleted the c/08-15-perf_tspath_add_patch_to_avoid_string_allocations_when_lowercasing_paths branch August 15, 2025 15:30
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.

3 participants