Skip to content

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

Closed

Description

@Eli-Argon

📗 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.

Activity

  1. added
    docIssues and PRs related to Node.js documentation.
    on Aug 23, 2021
  2. aduh95 commented on Aug 28, 2021

    @aduh95
    Contributor

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

  3. added
    duplicateIssues and PRs that are duplicates of other issues or PRs.
    on Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.duplicateIssues and PRs that are duplicates of other issues or PRs.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions