Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Nov 5, 2025

Follow-on after #14890. Small optimizations to ScopeManager.

  • Remove temp vars.
  • Test vars with === null or === undefined instead of !.
  • Avoid reading out of bounds of arrays.
  • Get length of array once before loop, rather than on each turn of loop.

Also add comments about potential future optimizations.

Copy link
Member Author

overlookmotel commented Nov 5, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

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

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI C-performance Category - Solution not expected to change functional behavior, only performance labels Nov 5, 2025
@overlookmotel overlookmotel marked this pull request as ready for review November 5, 2025 15:37
@overlookmotel overlookmotel force-pushed the 11-05-docs_linter_plugins_reformat_and_clarify_scopemanager_jsdoc_comments branch from 542da43 to e574bfb Compare November 5, 2025 16:09
@overlookmotel overlookmotel force-pushed the 11-05-perf_linter_plugins_small_optimizations_to_scopemanager_ branch 2 times, most recently from 9682116 to 13cf9c4 Compare November 5, 2025 16:11
@overlookmotel overlookmotel force-pushed the 11-05-docs_linter_plugins_reformat_and_clarify_scopemanager_jsdoc_comments branch from e574bfb to c1b94e0 Compare November 5, 2025 16:11
@overlookmotel overlookmotel self-assigned this Nov 5, 2025
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Nov 5, 2025
@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 5, 2025

Merge activity

Follow-on after #14890. Small optimizations to `ScopeManager`.

* Remove temp vars.
* Test vars with `=== null` or `=== undefined` instead of `!`.
* Avoid reading out of bounds of arrays.
* Get length of array once before loop, rather than on each turn of loop.

Also add comments about potential future optimizations.
@graphite-app graphite-app bot force-pushed the 11-05-docs_linter_plugins_reformat_and_clarify_scopemanager_jsdoc_comments branch from c1b94e0 to a7d9f1d Compare November 5, 2025 16:24
@graphite-app graphite-app bot force-pushed the 11-05-perf_linter_plugins_small_optimizations_to_scopemanager_ branch from 13cf9c4 to 8b31daa Compare November 5, 2025 16:25
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Nov 5, 2025
Base automatically changed from 11-05-docs_linter_plugins_reformat_and_clarify_scopemanager_jsdoc_comments to main November 5, 2025 16:31
@graphite-app graphite-app bot merged commit 8b31daa into main Nov 5, 2025
19 checks passed
@graphite-app graphite-app bot deleted the 11-05-perf_linter_plugins_small_optimizations_to_scopemanager_ branch November 5, 2025 16:31
@Boshen Boshen mentioned this pull request Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-linter Area - Linter C-performance Category - Solution not expected to change functional behavior, only performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants