4 ms·
Not to mention if you did have a large tmp file that you actually want to persist to a different directory that is on disk you now have to wait for the damn fil
by zepolen 2y ago
Not to mention if you did have a large tmp file that you actually want to persist to a different directory that is on disk you now have to wait for the damn file to be copied from memory to disk vs a single atomic rename operation, this can have major implications depending on the context.
- guappa 2y agoRename doesn't work across filesystems. You just create a new file and do a regular copy.