Skip to content

feat(connection): optimize AsyncResource lifecycle management#124

Merged
brianc merged 1 commit into
brianc:masterfrom
cesco69:async-connection
Mar 5, 2026
Merged

feat(connection): optimize AsyncResource lifecycle management#124
brianc merged 1 commit into
brianc:masterfrom
cesco69:async-connection

Conversation

@cesco69

@cesco69 cesco69 commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

This is a micro-optimization.

This PR optimizes the Emit() method by reusing a single Nan::AsyncResource instance instead of creating and destroying one on every call.

@brianc

brianc commented Mar 5, 2026

Copy link
Copy Markdown
Owner

sweet!

@brianc brianc merged commit 89857a3 into brianc:master Mar 5, 2026
4 checks passed
@cesco69 cesco69 deleted the async-connection branch March 6, 2026 08:05
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.

2 participants