Skip to content

perf(semantic): reuse identifier hashes in enum member lookups - #26773

Merged
graphite-app[bot] merged 1 commit into
mainfrom
codex/semantic-enum-ident-lookup
Sep 18, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
codex/semantic-enum-ident-lookup

Conversation

@camc314

@camc314 camc314 commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Pass Ident directly to enum body scope lookups so static member accesses reuse the cached identifier hash. Convert computed string member names once before searching the body scopes, avoiding repeated hashing for merged enum declarations.

Copilot AI lite review requested due to automatic review settings September 18, 2026 03:38
@camc314
camc314 requested a review from Dunqing as a code owner September 18, 2026 03:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-18T03:40:25.328528Z f4ea4d5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@camc314 camc314 self-assigned this Sep 18, 2026
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Sep 18, 2026

camc314 commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor Author

Merge activity

@github-actions github-actions Bot added the A-semantic Area - Scopes, symbols, references and semantic errors, oxc_semantic label Sep 18, 2026
graphite-app Bot pushed a commit that referenced this pull request Sep 18, 2026
Pass `Ident` directly to enum body scope lookups so static member accesses reuse the cached identifier hash. Convert computed string member names once before searching the body scopes, avoiding repeated hashing for merged enum declarations.
@graphite-app
graphite-app Bot force-pushed the codex/semantic-enum-ident-lookup branch from f4ea4d5 to 1f49218 Compare September 18, 2026 03:43
@codspeed

codspeed Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 82 untouched benchmarks
⏩ 14 skipped benchmarks1


Comparing codex/semantic-enum-ident-lookup (f4ea4d5) with main (32305e2)

Open in CodSpeed

Footnotes

  1. 14 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

Pass `Ident` directly to enum body scope lookups so static member accesses reuse the cached identifier hash. Convert computed string member names once before searching the body scopes, avoiding repeated hashing for merged enum declarations.
@graphite-app
graphite-app Bot force-pushed the codex/semantic-enum-ident-lookup branch from 1f49218 to bd3f69e Compare September 18, 2026 03:47
@graphite-app
graphite-app Bot merged commit bd3f69e into main Sep 18, 2026
32 checks passed
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Sep 18, 2026
@graphite-app
graphite-app Bot deleted the codex/semantic-enum-ident-lookup branch September 18, 2026 03:50
graphite-app Bot pushed a commit that referenced this pull request Sep 21, 2026
### 🚀 Features

- 1fac655 coverage: Support new TypeScript fixture layout (#26226) (camc314)

### 🐛 Bug Fixes

- cd7228f minifier: Add missing negation for boolean literal (#26847) (Armano)
- 32305e2 transformer: Skip enum reverse mappings for syntactic string initializers (#26724) (Dunqing)
- 7811f0a parser: Preserve reparsed `await` tokens (#26619) (camc314)
- 9220158 transformer: Skip recovered using loop patterns (#26722) (camc314)
- 3130405 parser: Recover await using object binding patterns (#26721) (camc314)
- 827fdbd parser: Reject invalid modifiers on import aliases (#26622) (camc314)

### ⚡ Performance

- 3f1e3aa minifier: Preallocate stmts vec size to avoid excesive reallocs (#26856) (Armano)
- bd3f69e semantic: Reuse identifier hashes in enum member lookups (#26773) (camc314)
- 5f72954 minifier: Reduce allocations when processing if statements (#26666) (Armano)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-semantic Area - Scopes, symbols, references and semantic errors, oxc_semantic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants