Skip to content

optimize Type method table queries and insertions#58216

Merged
vtjnash merged 1 commit intomasterfrom
jn/typemap-type-split
Apr 25, 2025
Merged

optimize Type method table queries and insertions#58216
vtjnash merged 1 commit intomasterfrom
jn/typemap-type-split

Conversation

@vtjnash
Copy link
Copy Markdown
Member

@vtjnash vtjnash commented Apr 24, 2025

Ensure a total split of constructors and non-constructors, so they do not end up seaching the opposing table. Instead cache all kind lookups as keyed by typename(Type). Not really needed on its own, but it avoids a minor performance regression in #58131.

Ensure a total split of constructors and non-constructors, so they do
not end up seaching the opposing table. Instead cache all kind lookups
as keyed by typename(Type).
@vtjnash vtjnash added backport 1.12 Change should be backported to release-1.12 merge me PR is reviewed. Merge when all tests are passing labels Apr 24, 2025
@vtjnash vtjnash merged commit d992554 into master Apr 25, 2025
7 of 9 checks passed
@vtjnash vtjnash deleted the jn/typemap-type-split branch April 25, 2025 16:34
@oscardssmith oscardssmith added performance Must go faster types and dispatch Types, subtyping and method dispatch and removed merge me PR is reviewed. Merge when all tests are passing labels Apr 25, 2025
KristofferC pushed a commit that referenced this pull request Apr 29, 2025
Ensure a total split of constructors and non-constructors, so they do
not end up seaching the opposing table. Instead cache all kind lookups
as keyed by typename(Type). Not really needed on its own, but it avoids
a minor performance regression in
#58131.

(cherry picked from commit d992554)
@KristofferC KristofferC mentioned this pull request Apr 29, 2025
53 tasks
LebedevRI pushed a commit to LebedevRI/julia that referenced this pull request May 2, 2025
Ensure a total split of constructors and non-constructors, so they do
not end up seaching the opposing table. Instead cache all kind lookups
as keyed by typename(Type). Not really needed on its own, but it avoids
a minor performance regression in
JuliaLang#58131.
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Must go faster types and dispatch Types, subtyping and method dispatch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants