rocker-org / rocker

R configurations for Docker
https://rocker-project.org
GNU General Public License v2.0
1.45k stars 273 forks source link

r in docker slower than native on wsl2 #472

Open julianquandt opened 2 years ago

julianquandt commented 2 years ago

Hi all,

I have been working with rstudio-server on wsl2 for a while and wanted to switch to rstudio-server on docker (also within wsl2) to make it more portable to other machines. However, I realized that with the same configurations and package versions, r on docker seems to be ~ 15% slower performing CPU heavy operations compared to my native wsl2 rstudio-server environment. I have tried some trouble-shooting (e.g. run with/without mounted drive) but nothing seemed to help so far so I wonder whether this is an expected slow-down due to how docker works or whether it is something that can be solved somehow. Does anyone have any pointers?

Thanks in advance and for the great work you all are doing here!