'What is the optimal ram disk strategy to speed up Xcode compilation?

I am trying to speed up compilation times. I have 128GB of Ram in my machine.

Most of the time, my machine barely uses 1-2GB of Ram…. That means about 126GB is free…..

What are the things I should put in the RAM disk to speed up compilation / running? So far I figure:

  • The project folder
  • Derived data
  • the simulator files

How can I make the most use of my ram to speed up compilation times? My app is relatively small (less that 300mb). Is there any pre-existing code / script I can use so I don’t have to reinvent the wheel?



Sources

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

Source: Stack Overflow

Solution Source