Skip to content

docs: suggest adding performance comparison table for fs.promises vs callback API #65930

Description

@fedbfreg

建议

在 fs 模块文档中添加一个性能对比说明,解释 fs.promises API 与传统 callback API 在性能上的差异和适用场景。

背景

很多开发者在选择文件系统 API 时不清楚 promises 和 callback 版本的性能差异。添加以下内容会很有帮助:

  1. 高并发场景下的性能表现差异
  2. 内存使用对比
  3. 何时应该使用 callback 版本以获得最佳性能

这对于构建高吞吐量的 Node.js 应用很有参考价值。

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions