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

Computation time #3

Open
daveduke777 opened this issue Jul 29, 2016 · 2 comments
Open

Computation time #3

daveduke777 opened this issue Jul 29, 2016 · 2 comments

Comments

@daveduke777
Copy link

Hello. Thank you for this library. It is quite easy to use.
Your benchmarks shows that it takes 0.2sec to access spline 10^7 times.
But it takes 100 seconds in my case. I build a spline and include it as a member to my class.
Then in another method I access this spline about 10^7 times.
Please suggest an algorithm optimization.
spl

@rob-p
Copy link

rob-p commented Aug 5, 2016

The time required to access the spline depends on the # of points that have been interpolated. How many control points are in the spline you're accessing? (Note: despite this, the 3-4 order of magnitude difference is still very surprising).

@ttk592
Copy link
Owner

ttk592 commented Feb 22, 2021

Could you provide a small working example? What output do you get when running examples/bench with the same number of grid points as in your project?

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

3 participants