-
Notifications
You must be signed in to change notification settings - Fork 5
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
[New Feature]: Improve computation efficiency #69
Comments
Some news about In branch 69-new-feature-improve-computation-efficiency, I have implemented all computational functions.
Here is the benchmark of the implmentations:
I also added some This is a first implementation, I did some tests, but this surely can be improved.
|
@BaptisteDlp branch |
Describe your feature request
spatialBehaviour
andtemporalBehaviour
are kind of slow to run. For exemple, it takes 37.5s on my computer (mac osx 2020, 2 GHz Intel Core i5 four cores) to run thespatialBehaviour
function for only 7 storms:We want the code to be faster.
Describe the solution you'd like
Three things must be considered to improve efficency when doing the computation of storms behaviour:
spatialBehaviour
spends most of its timeRcpp
libraryFirst analysis with the exemple above shows that :
spatialBehaviour
itself is 5800ms.External
functions, which are tipicalysf
functions.This means that we should consider means to lower the number of calls to
sf
functions.Rcpp
the computing functions, including:computeAsymmetry
willoughby
holland
boose
computeDirectionBoose
computeDirection
although as stated above, this is limited to a small fraction of the total computational time
foreach
library when relevent (and possible)Describe alternatives you've considered
sf
functions callsRcpp
foreach
libraryAdditional context
No response
The text was updated successfully, but these errors were encountered: