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

Make the chunksize determination static when static #1540

Merged
merged 1 commit into from
Dec 11, 2021

Conversation

ChrisRackauckas
Copy link
Member

A bit more of a sane version of #1536

end
end

@generated function pick_static_chunksize(::Val{chunksize}) where chunksize
x = ForwardDiff.pickchunksize(chunksize)
:(Val{$x}())
Copy link
Contributor

Choose a reason for hiding this comment

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

FWIW, Pumas has been relying on const prop for this, and that seems to be fine so far.

Copy link
Member Author

Choose a reason for hiding this comment

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

IIRC it caused a major performance change here 😅

Copy link
Contributor

Choose a reason for hiding this comment

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

I should double check Pumas, then.

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.

2 participants