-
Notifications
You must be signed in to change notification settings - Fork 19
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
Avoid FieldVector outer constructor inference #2115
Conversation
Also, I plan to update the flame allocation tests once we get numbers from CI. |
should we just |
Will that help? I think it's the recursive |
Correction: most of the allocations in the callbacks that |
bors r+ |
2115: Avoid FieldVector outer constructor inference r=charleskawczynski a=charleskawczynski I realized that most of the allocations in the callbacks are actually coming from _inference_ in the FieldVector outer constructor: <img width="1896" alt="Screen Shot 2023-09-19 at 11 08 19 AM" src="https://github.com/CliMA/ClimaAtmos.jl/assets/1880641/9600dd17-4862-4730-8180-6e5d19a163d8"> This PR should (hopefully) avoid this, by calling the outer constructor where the undertype is pre-specified. Co-authored-by: Charles Kawczynski <kawczynski.charles@gmail.com>
Build failed: |
5bb3661
to
e080eec
Compare
bors r+ |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
I realized that most of the allocations in the callbacks are actually coming from inference in the FieldVector outer constructor:
This PR should (hopefully) avoid this, by calling the outer constructor where the undertype is pre-specified.