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

use faster fs methods #1072

Merged
merged 4 commits into from
Aug 5, 2023

Conversation

romainmenke
Copy link
Member

see : https://nodejs.org/en/blog/release/v20.5.0#notable-changes

fs: add a fast-path for readFileSync utf-8

We are using async reads in a lot of places where we actually want sync reads.
We also omit the encoding in some places.

Resolving both should make things a bit faster.

@romainmenke romainmenke marked this pull request as ready for review August 5, 2023 08:12
@romainmenke romainmenke merged commit b0dfbd1 into main Aug 5, 2023
@romainmenke romainmenke deleted the use-faster-fs-methods--inventive-zorse-f557d3bf85 branch August 5, 2023 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant