'Running parallel R processes on Azure VM with multiple cores

I have an import job that loads hundreds of FST files and combines them into a single table. To speed it up I've tried furrr and foreach and in both cases it slows it down instead of speeding it up similar to the experience in this 2019 article. How can I run a parallel process on an Azure VM with R and have it speed up instead of slow down?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source