Repository navigation
Conversation
fengmk2
force-pushed
the
codex/shared-utils-performance
branch
from
November 5, 2026 05:39
4746fa7 to
242223f
Compare
fengmk2
force-pushed
the
codex/shared-utils-performance
branch
from
November 5, 2026 05:46
242223f to
5e7b0cc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
vinext-utils/prefer-shared-utilsrule copies the full source for each comment or string it masks. Large files cause repeated copies and extra garbage collection.The rule now scans the original source, collects the unchanged sections and replacement spaces, and joins them once. It preserves declaration matching, template handling, and one report per helper per file.
The machine uses an Apple M4 Max, macOS
27.0.1, and Node.js26.13.0. Both versions check 1,831 files with four threads andOXLINT_TSGOLINT_CHECKER_SCHEDULING=sorted. Only the rule implementation changes between runs.Each version has one warm-up and five measured runs per configuration. Runs alternate between versions. The table shows median command times.
prefer-shared-utilsThe two features use the
typeAwareandtypeCheckoptions, respectively. Both options change together in these measurements. With both JS plugins, type-aware linting, and type checking disabled, the control median is 0.64 seconds.