/root for sure is not a good location.
That would be doing everything in the save, because /root is in the save.
/tmp is more a location in memory, because anything in /tmp is deleted and not stored in the save.
I always run the compiling process from programs and files on the same drive and partition that the running Puppy version is on.
But I have it writing the compiled software to a different drive and partition.
My thinking, if everything Is on the same drive and partition.
It has to read, compile, write, to the same partition and drive about all at the same time.
I do not think the drive read write process can do both exactly at the same time on the same drive and partition. (read and write)
If it only reads from one drive. (accessing the compiling programs, accessing the software source, etc....)
But writes to a completely separate drive and partition.
It only needs to read on one drive and only write on the other drive.
That should be able to be done at the same time.
Plus having the compiling process write to a specific drive partition location.
It is written exactly at the same time. Nothing needs stored in RAM to later get written to a permanent storage location.