Skip to content

perf: convert object to params#3302

Merged
mcollina merged 3 commits intonodejs:mainfrom
DarkGL:perf/convert-object-to-params
Jun 6, 2024
Merged

perf: convert object to params#3302
mcollina merged 3 commits intonodejs:mainfrom
DarkGL:perf/convert-object-to-params

Conversation

@DarkGL
Copy link
Copy Markdown
Contributor

@DarkGL DarkGL commented May 29, 2024

Convert passing object to passing params to writeBuffer writeIterable writeBlob writeStream

This relates to...

Rationale

Generally speaking constructing new object and passing it to function is more costly than just passing params.

Also using deoptexplorer-vscode I have found that writeBuffer was deoptimized probably because off passing different shape of object.

Changes

  • Convert passing object to passing params to writeBuffer writeIterable writeBlob writeStream

Features

Bug Fixes

Breaking Changes and Deprecations

Status

Loading
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.

5 participants