Re:Crazy fast build times, or when 10 seconds starts to make...
by ghusbands on Wednesday March 24, 2021 @06:23AM
(#26565421)
Which OS? And were you already on SSD? Those can both greatly influence the outcome.
Re:Crazy fast build times, or when 10 seconds starts to make...
by WildParser on Wednesday March 24, 2021 @08:22AM
(#26566232)
I'm on Windows. Other OS may differ. I experimented a lot with load times - and compared HDD, SSD, RAM-Disk.
I wrote a small program that loads everything from a big code-repository into RAM. The first time HDD and SSD and RAM-Disk make a big difference, when reading files a second time the lag of HDD (50s?) almost disappeared completely. Caching kicked in.
The RAM-Disk has less initial lag, but also it has to be filled first, so instead of moving everything to RAM-Disk just touching everything so the OS-Caching kicks in is just faster and more convenient.
OS-caching seems to already be clever enough and once the OS has figured out that some directories are important anything in there seemed to get done in RAM anyway.
A RAM-disk will make this less black box and more deterministic regarding guaranteed access times, but in daily use the RAM-disk just didn't make a difference.