Member-only story
Reduce XCode Compile and Link time
Dedicate memory space to Xcode
As Xcode run on RAM and read write data to storage. This create a bottleneck, As most of the advanced SSD are ~400 time slower than RAM. Second issue is the delay in transmission of data
The solution to above, If we let Xcode read and write on ram above issue can be fixed. We can follow following logic to achieve the same:
- Configure RAM. Create a special block in memory for Xcode to use.
- Let Xcode connect to the dedicated memory space we created.
For Step One, we need to create a Shell Script as following:
When you run above script, you will see that you have an extra memory space called xcodeDeriveData
with 2048 MB in size.
Now we do step Two, i.e. connect the new space to derive data location. This can achieve as following:
Now as read write will happen on RAM. Xcode will be relatively faster.