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 for aggregator buffer #126

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Mr0grog
Copy link
Collaborator

@Mr0grog Mr0grog commented Nov 11, 2024

The Map object is built for our exact use-case here. It is faster and safer than using a plain JS object (what we currently do) or an object created with Object.create(null). While this is a pretty minor improvement, it’s still worthwhile!

I meant to make this change a long time ago, and then managed to totally forget about it. 😅

The `Map` object is built for our exact use-case here, and is both faster and safer than using a plain JS object (what we currently do) or an object created with `Object.create(null)`. This is a pretty minor improvement, but still worthwhile.
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