Skip to content

Speed up vkGet{Instance,Device}ProcAddr lookups - #1991

Open
jpr42 wants to merge 1 commit into
KhronosGroup:mainfrom
jpr42:dev-hash-1631
Open

Speed up vkGet{Instance,Device}ProcAddr lookups#1991
jpr42 wants to merge 1 commit into
KhronosGroup:mainfrom
jpr42:dev-hash-1631

Conversation

@jpr42

@jpr42 jpr42 commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Benchmarked against the pre-change baseline: typical and late-position lookups are 20-70x faster, and unknown-name (miss) lookups - the most common real-world case when probing for unsupported extensions - are 10-70x faster. The only downside is a small, fixed regression (a few ns, still under 20ns) for the single name that happened to be first in each function's original if-chain, due to the fixed cost of hashing the query string.

Fixes #1631

@ci-tester-lunarg

Copy link
Copy Markdown

Author jpr42 not on autobuild list. Waiting for curator authorization before starting CI build.

1 similar comment
@ci-tester-lunarg

Copy link
Copy Markdown

Author jpr42 not on autobuild list. Waiting for curator authorization before starting CI build.

@jpr42

jpr42 commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

CI passes on fork. CI failure is unrelated/sporadic. Try running failed jobs again.

Benchmarked against the pre-change baseline: typical and late-position
lookups are 20-70x faster, and unknown-name (miss) lookups - the most
common real-world case when probing for unsupported extensions - are
10-70x faster. The only downside is a small, fixed regression (a few
ns, still under 20ns) for the single name that happened to be first in
each function's original if-chain, due to the fixed cost of hashing
the query string.

Fixes KhronosGroup#1631
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.

Loading entry points can be much faster

2 participants