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 Map instead of Object for BaseChannel.consumers #660

Merged

Conversation

Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented Nov 4, 2021

This PR uses a Map instead of an Object for BaseChannel.consumers. It should improve the performance while running in node, as the amount of V8-HiddenClasses will be reduced.

Use Case: If in your implementation alot of consumers get created and canceled, alot of unique V8-HiddenClasses will be created in V8 at runtime.

Information regarding HiddenClasses:
https://v8.dev/blog/slack-tracking

@Uzlopak
Copy link
Contributor Author

Uzlopak commented Nov 5, 2021

Should fix #656

@cressie176 cressie176 merged commit ce5a9d9 into amqp-node:main May 15, 2022
@cressie176
Copy link
Collaborator

Thank you @Uzlopak. I've merged into main and will close when I next publish a release.

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.

None yet

2 participants