Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inference: add benchmark target to check benefit of method match cache #299

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

aviatesk
Copy link
Member

This benchmark target corresponds to JuliaLang/julia/pull/46535.

method_match_cache contains many artificially generated broadcasting
operations, that will lead to constant propagations and accompanying
method match analysis on call sites with same abstract signatures, e.g.

  • Tuple{typeof(convert), Type{Int64}, Int64}
  • Tuple{typeof(convert), Type{Float64}, Float64}

Since we currently don't cache method match result for abstract call
signatures on the level of the runtime system, we can obtain the best
performance if we cache such abstract method match results on Julia level,
that will be revived by JuliaLang/julia/pull/46535.

This benchmark target corresponds to JuliaLang/julia/pull/46535.

`method_match_cache` contains many artificially generated broadcasting
operations, that will lead to constant propagations and accompanying
method match analysis on call sites with same abstract signatures, e.g.
- `Tuple{typeof(convert), Type{Int64}, Int64}`
- `Tuple{typeof(convert), Type{Float64}, Float64}`

Since we currently don't cache method match result for abstract call
signatures on the level of the runtime system, we can obtain the best
performance if we cache such abstract method match results on Julia level,
that will be revived by JuliaLang/julia/pull/46535.
@aviatesk aviatesk merged commit 4687d0f into master Aug 30, 2022
@aviatesk aviatesk deleted the avi/method_match_cache branch August 30, 2022 16:53
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.

1 participant