Skip to content

perf: preallocate inherited member symbol table - #64321

Open
Cameron (camc314) wants to merge 1 commit into
microsoft:mainfrom
camc314:codex/preallocate-inherited-symbol-table
Open

Cameron (camc314) wants to merge 1 commit into
microsoft:mainfrom
camc314:codex/preallocate-inherited-symbol-table

Conversation

@camc314

Copy link
Copy Markdown
Contributor

Since we know how big the map is going to be, we can pre allocate and avoid a re-allocation.

Same as the previous PR, I checked, and there are zero duplicated based names:

Workload Calls New maps Most common hint → length
VS Code 249,873 2,035 3 → 3 (22.0%)
Go suite 429,137 6,432 1 → 1 (24.6%)

Copilot AI balanced review requested due to automatic review settings September 18, 2026 03:09
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Sep 18, 2026
@typescript-automation

Copy link
Copy Markdown

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@typescript-automation typescript-automation Bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Sep 18, 2026

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.

@jakebailey

Copy link
Copy Markdown
Member

Zero duplication, but, how many hints are too large?

might not matter as Go maps typically already start with size 8 or something, so I'm not sure if this does much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

3 participants