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

Test FunctionWrappers for dispatch_methodlist #142

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sjdaines
Copy link
Member

@sjdaines sjdaines commented Dec 1, 2024

Test code to see if FunctionWrappers can be used to simplify the dispatch_methodlist code.

Test with Julia 1.11 and atmospheric photochemistry model suggest all three approaches (dynamic dispatch, @generated dispatch, using FunctionWrappers) are now similar in both compile time and execution speed.

Set generated_dispatch=false to run test code

Uses a FunctionWrapper containing a MethodCommand to create a type stable dispatch for reaction methods.

Test with atmospheric chemistry model shows speed is comparable, small reduction in compile time.

Test code to see if FunctionWrappers can be used to simplify the dispatch_methodlist code.

Test with Julia 1.11 and atmospheric photochemistry model suggest all three approaches (dynamic dispatch,
@generated dispatch, using FunctionWrappers) are now similar in both compile time and execution speed.

Set generated_dispatch=false to run test code

Uses a FunctionWrapper containing a MethodCommand to create a type stable
dispatch for reaction methods.

Test with atmospheric chemistry model shows speed is comparable, small reduction in compile time.
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