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

perf: convert to buffer during async writes #201

Merged
merged 3 commits into from
Aug 22, 2024

Conversation

ronag
Copy link
Contributor

@ronag ronag commented Aug 21, 2024

This should be significantly faster in node 22.7

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't it be significantly slower on 18 and 20?

@ronag
Copy link
Contributor Author

ronag commented Aug 22, 2024

wouldn't it be significantly slower on 18 and 20?

Not necessarily. But yea, it would probably be slower. Should we check for node version in runtime?

index.js Outdated Show resolved Hide resolved
Co-authored-by: James Sumners <321201+jsumners@users.noreply.github.com>
@ronag ronag requested a review from mcollina August 22, 2024 12:15
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit 52b2af2 into pinojs:master Aug 22, 2024
8 checks passed
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.

3 participants