Skip to content

[v14.x backport] fs: improve fsPromises writeFile performance#39993

Closed
MoritzLoewenstein wants to merge 1 commit intonodejs:v14.x-stagingfrom
MoritzLoewenstein:fs-writefile-performance-backport
Closed

[v14.x backport] fs: improve fsPromises writeFile performance#39993
MoritzLoewenstein wants to merge 1 commit intonodejs:v14.x-stagingfrom
MoritzLoewenstein:fs-writefile-performance-backport

Conversation

@MoritzLoewenstein
Copy link
Copy Markdown

backport of #37610
'sister' pr of #39838

@nodejs-github-bot nodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. v14.x labels Sep 4, 2021
Copy link
Copy Markdown
Member

@targos targos left a comment

Choose a reason for hiding this comment

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

nits to make the code closer to what's on the master branch

Comment thread lib/internal/fs/promises.js Outdated
Comment thread lib/internal/fs/utils.js
Comment thread lib/internal/fs/utils.js Outdated
@MoritzLoewenstein MoritzLoewenstein force-pushed the fs-writefile-performance-backport branch from d51c40c to 91cad74 Compare September 5, 2021 10:13
@targos targos added the request-ci Add this label to start a Jenkins CI on a PR. label Sep 5, 2021
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 5, 2021
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@targos
Copy link
Copy Markdown
Member

targos commented Sep 5, 2021

CI with Python 2 is broken: #39990 (comment)

Comment thread test/parallel/test-fs-promises-file-handle-writeFile.js Outdated
@MoritzLoewenstein MoritzLoewenstein force-pushed the fs-writefile-performance-backport branch from 91cad74 to 03d36bb Compare September 5, 2021 14:07
Increase the write chunk size in fsPromises writeFile
to improve performance.

PR-URL: nodejs#37610
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@targos targos force-pushed the fs-writefile-performance-backport branch from 03d36bb to 9a5e60b Compare September 7, 2021 09:19
@targos
Copy link
Copy Markdown
Member

targos commented Sep 7, 2021

I just rebased the branch. CI should pass now.

@targos targos added the request-ci Add this label to start a Jenkins CI on a PR. label Sep 7, 2021
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 7, 2021
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

targos pushed a commit that referenced this pull request Sep 7, 2021
Increase the write chunk size in fsPromises writeFile
to improve performance.

PR-URL: #37610
Backport-PR-URL: #39993
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@targos
Copy link
Copy Markdown
Member

targos commented Sep 7, 2021

Landed in d2834fb

@targos targos closed this Sep 7, 2021
@MoritzLoewenstein MoritzLoewenstein deleted the fs-writefile-performance-backport branch September 7, 2021 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants