-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fs: replace SetMethodNoSideEffect
in node_file.cc
#49857
fs: replace SetMethodNoSideEffect
in node_file.cc
#49857
Conversation
cc @joyeecheung |
This comment was marked as outdated.
This comment was marked as outdated.
2cf762e
to
bf379ef
Compare
Why is this being fast tracked does it unblock something? |
Pretty sure it's because it fixes repl possibly doing unwanted real FS ops for a few functions if you were to type out but not press enter (eg |
The fact that this fixes a bug does not really mean that it qualifies for fast tracking. |
|
There isn't but referring to @joyeecheung's message (ref: #49748 (comment)), I think it is unnecessary to run fs operations (since they're costly) on REPL. |
I don't interpret @joyeecheung's comment (but please correct me if I'm wrong) to mean we shouldn't do it because of performance reasons. I interpret it as
I don't feel strongly about this, but I think this is another case where performance just isn't important. The REPL is meant to be interactive and a person typing |
Landed in 783f64b |
PR-URL: #49857 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
PR-URL: #49857 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
PR-URL: nodejs#49857 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
PR-URL: nodejs#49857 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
All FS methods should not use it since FS operations will have side effects (suggested by @anonrig)