Skip to content
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

doc: fs module: Callback API vs Promises API performance difference #39847

Closed
1 task
Eli-Argon opened this issue Aug 23, 2021 · 1 comment
Closed
1 task

doc: fs module: Callback API vs Promises API performance difference #39847

Eli-Argon opened this issue Aug 23, 2021 · 1 comment
Labels
doc Issues and PRs related to the documentations. duplicate Issues and PRs that are duplicates of other issues or PRs.

Comments

@Eli-Argon
Copy link

Eli-Argon commented Aug 23, 2021

📗 API Reference Docs Problem

  • Version: 16.7.0

Location

Affected URL(s):

Description

I would like an explanation provided for the following line in the fs docs (commit):

The callback-based versions of the fs module APIs are preferable over the use of the promise APIs when maximal performance (both in terms of execution time and memory allocation are required).

I could find no info on this. Why is fs's Callback API more performant than Promises API and how big is the difference?


  • I would like to work on this issue and
    submit a pull request.
@Eli-Argon Eli-Argon added the doc Issues and PRs related to the documentations. label Aug 23, 2021
@aduh95
Copy link
Contributor

aduh95 commented Aug 28, 2021

Discussion on this subject is in #37583. Closing as duplicate.

@aduh95 aduh95 closed this as completed Aug 28, 2021
@aduh95 aduh95 added the duplicate Issues and PRs that are duplicates of other issues or PRs. label Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. duplicate Issues and PRs that are duplicates of other issues or PRs.
Projects
None yet
Development

No branches or pull requests

2 participants