Skip to content

Avoid cost of star member access lookup if not registered#789

Merged
sebastienros merged 1 commit intosebastienros:mainfrom
lahma:avoid-star-key-penalty
Apr 27, 2025
Merged

Avoid cost of star member access lookup if not registered#789
sebastienros merged 1 commit intosebastienros:mainfrom
lahma:avoid-star-key-penalty

Conversation

@lahma
Copy link
Copy Markdown
Collaborator

@lahma lahma commented Apr 27, 2025

As star is used for custom accessors, it's not that common. Now keeping track if such has been registered to any type and then only creating new key and doing the second dictionary lookup.

@sebastienros sebastienros merged commit d52cb55 into sebastienros:main Apr 27, 2025
1 check passed
@lahma lahma deleted the avoid-star-key-penalty branch April 28, 2025 06:14
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.

2 participants