Open wlandau opened 4 years ago
Hmm... the segfault on Travis seems to trace back to has_postgres()
. @richfitz, what do you suggest we do?
Also, I just remembered that even if the keys are different, the data might still be the same, which creates a race condition. I ran right into that Chesterton fence :sweat_smile:. But we might still be able to save time by skipping scratch
for the keys in many use cases, including drake
.
As mentioned in #80, some use cases of RDS
storr
s require atomic writes, which depend on thescratch
directory. However, writing to scratch and then moving the file creates a bottleneck on some systems, Windows in particular. This workflow spends a lot of time renaming tiny files, and the total runtime was around 104 seconds on my machine.The changes in this PR cut the total runtime down to about 50 seconds, and
file.rename()
is no longer a bottleneck.I need to do more digging to make sure people can disable
scratch
withdrake
, but since progress logging is different than it once was, I think it is worth a shot.