-
Notifications
You must be signed in to change notification settings - Fork 15
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
Parallel computation #28
base: master
Are you sure you want to change the base?
Conversation
… large maps or grids Added @param documentation line for parallel option Contributor information added in DESCRIPTION. New parallel feature added in NEWS.
Hi @spiry34 ! Thanks for your contribution and pull request! |
Hello @sjewo, |
Improved parallel efficiency by using batches of polygons 'parallel' option can be set to a numeric value in order to set the number of cores used
Hello @sjewo ,
If you find some weird stuff, I'll do my best to explain or correct. |
Hey @spiry34, thanks for the update! I'll start to add some tests for the current implementation, so I can test your code thoroughly :) |
Just to say that using this update seems to shorten the run time for each iteration when using one core. However, I am getting the following error when I try I set
I have tried using both |
Added optional parallel computation in cartogram_cont.R, relevant for large maps or grids
Added @param documentation line for parallel option
Contributor information added in DESCRIPTION.
New parallel feature added in NEWS.
Parallel computation is slower on small maps (~1-5 hundreds of objects) but really improves computation time on large grids (tested on 4 cores with 3500 objects -> computation time improved by a factor 3.6).
As I use your package for grids anamorphosis, the faster the better ;-)
S.