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

Interpolations.gradient is not allocation free under Julia v1.11 #610

Open
lmh91 opened this issue Feb 2, 2025 · 0 comments
Open

Interpolations.gradient is not allocation free under Julia v1.11 #610

lmh91 opened this issue Feb 2, 2025 · 0 comments

Comments

@lmh91
Copy link

lmh91 commented Feb 2, 2025

Interpolations.gradient causes some allocations under Julia v1.11 whereas under Julia v1.10 it does not.
Resulting in also some significant performance drop.

MWE:

using BenchmarkTools
using Interpolations

itp = interpolate(rand(11, 11), BSpline(Cubic()))
x, y = 3.4, 5.3

@btime Interpolations.gradient($itp, $x, $y)

Julia v1.10: 18.136 ns (0 allocations: 0 bytes)

Julia v1.11: 118.716 ns (8 allocations: 384 bytes)

I am not sure if this actually bolongs here or to some dependency or Julia itself.

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

No branches or pull requests

1 participant