Closed eszterb99 closed 4 years ago
Turn on options(future.debug=TRUE)
and look at the long output.
Note also that argument X
(here data
) is always considered a global but it will be chunked up separately for each worker.
Haven't heard back. I'm closing, but please let me know if you still have questions or this was not clear.
This is rather a question, not a bug.
I use
future_lapply()
to go through a large database and perform different calculations on each observation. In thefuture.globals
argument, I have to provide a long list of objects but adding also the database makes the parallel calculation so slow it's not worth replacing the sequential solution.However, I tried to run
future_lapply()
with providing everything in thefuture.globals
argument except for the database that the calculations should be performed on - and it still works to my surprise. Here is a small example demonstrating it:Actually, I'm pretty happy with that working like this (makes running 7-10x faster), however, it would be nice to know how
future_lapply()
finds objects if they are not provided in thefuture.globals
argument.Thank you!