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

chore: maybe squeeze out a bit more read performance from node #43

Merged
merged 1 commit into from
Sep 27, 2023
Merged

Conversation

abose
Copy link
Member

@abose abose commented Sep 27, 2023

fs.promises.readFile is 40% slower than fs.readFile

Though we noted only minor variations is our test.

but fsNormal.readFile was faster most of the time though only by very few 10's of MS. And at times the other one was faster too. But most of the time, the non-promise impl was faster.

Leaving no quick-fix performance on the table, so we moved to this impl as phoenix-fs lib is a core fs lib for the browser and every bit of performance counts at this time to improve ui responsiveness.

nodejs/node#37583

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@abose abose merged commit 04e7831 into main Sep 27, 2023
9 checks passed
@abose abose deleted the x branch September 27, 2023 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant