-
-
Notifications
You must be signed in to change notification settings - Fork 38.2k
readFileSync is 40% faster than readFile for large files #41435
Copy link
Copy link
Closed as not planned
Labels
feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.performanceIssues and PRs related to the performance of Node.js.Issues and PRs related to the performance of Node.js.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
Description
Activity
Metadata
Metadata
Assignees
Labels
feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.performanceIssues and PRs related to the performance of Node.js.Issues and PRs related to the performance of Node.js.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
What is the problem this feature will solve?
make
readFileas fast asreadFileSyncWhat is the feature you are proposing to solve the problem?
read the whole file in one operation to avoid excessive context switching
What alternatives have you considered?
No response