RAM disk for faster builds

Cross-posting from Stack Overflow

Is there any tool or guide for using a RAM disk/drive for writing during the compile-and-build process in IntelliJ 2017.1 with Vaadin 8?

In Swift/Objective-C work in Xcode, a common trick is to use macOS command line tools to create a RAM disk and then direct Xcode to write DerivedData folder there. This dramatically increases the compile, build, and run cycle. Another benefit is less wear-and-tear on the flash-based storage of your MacBook. I would like to do the same for Vaadin work

Hi Basil.

Just to give you a hint. This for sure isn’t a Vaadin question. It is barely an IntelliJ question. I believe it is first and foremost a
Maven question

Google : Maven + ramdisk.