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

Simplify with many-keys-map #16

Merged
merged 6 commits into from Mar 20, 2019
Merged

Simplify with many-keys-map #16

merged 6 commits into from Mar 20, 2019

Conversation

fregante
Copy link
Collaborator

@fregante fregante commented Mar 13, 2019

This comes after #15 because both fix currently-breaking tests.

I'm sending this because many-keys-map was born from #11 (comment)

If it's not an improvement, no feelings will be hurt by not merging it.

Note: it doesn't use WeakMap anymore, but element-ready already cleans the map when it finds it or it's cancelled. If it's never cancelled, it means that there's a function running up to 60 times a second forever—arguably more detrimental to performance than an object in memory.

package.json Outdated Show resolved Hide resolved
test.js Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

#15 is merged

@fregante fregante marked this pull request as ready for review March 13, 2019 11:10
@sindresorhus sindresorhus merged commit 1d76111 into sindresorhus:master Mar 20, 2019
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