-
Notifications
You must be signed in to change notification settings - Fork 11
Use fast-write-atomic instead of write-file-atomic #21
Conversation
The commit message needs to be changed to be in line with the PL guidelines Also pre 1.0.0 deps need to be specified with the Once that's done CI should be happier. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - mainly looked at what fast-write-atomic does under the hood, and that seems to match the minimal thing that we need to do to, to make things work.
8041824
to
523a9c6
Compare
@achingbrain done. |
One thing that |
That was not part of the algorithm of the Go implementation. |
CI says:
Change |
fast-write-atomic is 10-20% faster depending on the operating system, mainly because it does not use fs.realpath() and so many promises.
523a9c6
to
da4de26
Compare
should be done now :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There's recursion without process.nextTick
in a couple of places in fast-write-atomic
Do you think there's a chance of stack overflows on busy systems?
Can you send links? I think everything is taken care of. |
Those cannot overflow because |
@pgte can we get your review, merge and release please 🙏 |
ping @pgte |
Landed on v0.8.0. |
fast-write-atomic is 10-20% faster depending on the operating system,
mainly because it does not use fs.realpath() and so many promises.
This needs to be tested, especially on Windows.
I'm happy to move fast-write-atomic to the ipfs org if you want, I've put it on my profile for convenience of adding Travis etc.
See ipfs/js-ipfs#1785 for more details.