Skip to content

fs: lazy load promise related stuff - #20766

Closed
jasnell wants to merge 2 commits into
nodejs:masterfrom
jasnell:fs-lazy-load-promises
Closed

fs: lazy load promise related stuff#20766
jasnell wants to merge 2 commits into
nodejs:masterfrom
jasnell:fs-lazy-load-promises

Conversation

@jasnell

Copy link
Copy Markdown
Member

These are commits that were originally in #20734....

Lazy load the promises impl and promise utility bindings.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-botnodejs-github-bot added the fs Issues and PRs related to the fs subsystem / file system. label May 16, 2018
@jasnell

Copy link
Copy Markdown
MemberAuthor

/cc @nodejs/fs

@jasnell

Copy link
Copy Markdown
MemberAuthor

@benjamingrbenjamingr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual changes LGTM for cognitive overhead but I'd love to see a benchmark showing a measurable (even if small) impact.

I get why this would matter for require in userland but I'm not sure I understand why it would impact load times here.

@lpincalpinca added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 17, 2018
@BridgeAR

Copy link
Copy Markdown
Member

@benjamingr

The actual changes LGTM for cognitive overhead but I'd love to see a benchmark showing a measurable (even if small) impact.

It is difficult to measure this with a small change like this alone. If you have a look at #20567 you can see that lazy loading does indeed significantly improve the performance. We still need snapshots but lazy loading is already a first good step and a good thing in general.

jasnell added a commit that referenced this pull request May 18, 2018
PR-URL: #20766
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
jasnell added a commit that referenced this pull request May 18, 2018
PR-URL: #20766
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@jasnell

Copy link
Copy Markdown
MemberAuthor

Landed in 11aea01 and fa0cac5

@jasnelljasnell closed this May 18, 2018
MylesBorins pushed a commit that referenced this pull request May 22, 2018
PR-URL: #20766
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
MylesBorins pushed a commit that referenced this pull request May 22, 2018
PR-URL: #20766
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@addaleaxaddaleax mentioned this pull request May 22, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.fsIssues and PRs related to the fs subsystem / file system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@jasnell@BridgeAR@benjamingr@lpinca@TimothyGu@targos@joyeecheung@JungMinu@nodejs-github-bot