-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Revert "lib: lazy instantiation of fs.Stats dates" #13256
Conversation
This reverts commit 9836cf5. Ref: npm/npm#16734
Has anyone checked if this would have been caught with |
@mscdex I did, it wouldn't have. IMHO we should first and foremost revert this from For reference we also have #13173 that has been cooking for a while and is verified to fix npm/npm#16734. |
… and it’s quite likely that that regresses performance. I know reverting sucks, but at this point I see no solution that should make it into v8.x, and we can’t tell how much of an impact this has by v9.x; so we might as well revert and re-visit. |
Yeah it's a bit of a shame to revert, but understandable. I'm just giving another option. There is also a third option to revert the |
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
Sounds like a good call to me. |
@addaleax I've never had problems with the performance of stat myself, I was working on another issue in Stat and was asked to look into this. :) You can reopen the original PR if you'd like, but I can't really think of an approach right now that would solve the issue with |
"Dry-run" CI: https://ci.nodejs.org/job/node-test-commit/10207/ |
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.
Need to revert a109032 as well
So some context.
|
No it doesn’t, I’ve accounted for that in the revert; as you see, the CI is looking good. |
Ohh 👍 good job. |
oh good, thanks for the clarification @addaleax ... I was pretty certain that it had been accounted for but the confirmation is definitely appreciated. |
@refack Yeah I did actually check the changes to make sure it wouldn't be affected. Probably should have mentioned. :) (Or, probably shouldn't have made the +0.5 change in the lazy date PR to begin with.. just didn't notice I hadn't removed it until it was already merged.) |
Bottom line is: The "process" worked. The npm bug will not be in the release, and now we have time to recook the lazy-dates/exposed-millis change (maybe we can manipulate |
I've dropped the commit from v8.x, pulling this off the 8 milestone. |
Landed in ae6c704 |
This reverts commit 9836cf5. Ref: npm/npm#16734 PR-URL: #13256 Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Ohh I wanted to recommend adding the regression test from 13173. |
* convert ’ to ' to turn md file to ASCII Fixes: nodejs#8276 Refs: nodejs#12607 Refs: nodejs#12818 Refs: nodejs#13256
This reverts commit 9836cf5.
Ref: npm/npm#16734
@sciolist @refack @nodejs/ctc
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
fs