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

optimize abstract_invoke #56560

Merged
merged 1 commit into from
Nov 15, 2024
Merged

optimize abstract_invoke #56560

merged 1 commit into from
Nov 15, 2024

Conversation

aviatesk
Copy link
Member

  • removed unnecessary Core.Box allocation
  • make the type of the closure that is passed to Future concrete

That said, it doesn’t seem ideal to require this sort of manual optimizations.. The value of using closures cannot be denied in this code base, and I feel that it would be better to work towards optimizing closures more (as we do with #56532)?

@nanosoldier runbenchmarks("inference", vs=":master")

- removed unnecessary `Core.Box` allocation
- make the type of the closure that is passed to `Future` concrete

That said, it doesn’t seem ideal to require this sort of manual
optimizations.. The value of using closures cannot be denied in this
code base, and I feel that it would be better to work towards optimizing
closures more?
Comment on lines -2185 to +2186
match, valid_worlds = findsup(lookupsig, method_table(interp))
match === nothing && return Future(CallMeta(Any, Any, Effects(), NoCallInfo()))
matched, valid_worlds = findsup(lookupsig, method_table(interp))
matched === nothing && return Future(CallMeta(Any, Any, Effects(), NoCallInfo()))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an instance of #56561.

@nanosoldier
Copy link
Collaborator

Your benchmark job has completed - possible performance regressions were detected. A full report can be found here.

@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Nov 14, 2024
@aviatesk aviatesk merged commit 2d9a2ee into master Nov 15, 2024
7 of 9 checks passed
@aviatesk aviatesk deleted the avi/optimize-abstract_invoke branch November 15, 2024 06:08
@DilumAluthge DilumAluthge removed the merge me PR is reviewed. Merge when all tests are passing label Nov 20, 2024
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.

4 participants