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

adopt interning for set operations #231

Merged
merged 1 commit into from Sep 19, 2021
Merged

Conversation

mbostock
Copy link
Member

@mbostock mbostock commented Sep 18, 2021

This adopts InternSet for d3-array’s set operations, which means you can now use things like d3.union and d3.difference on arrays of dates. As another bonus, you can say d3.union(values) instead of new d3.InternSet(values).

@mbostock mbostock requested a review from Fil September 18, 2021 22:52
@mbostock
Copy link
Member Author

The upgrade of internmap is pretty urgent here (the delete operation was broken) so I’m going to go ahead with this. But let me know if you have any objections!

@mbostock mbostock merged commit d05672a into main Sep 19, 2021
@mbostock mbostock deleted the mbostock/intern-set-operations branch September 19, 2021 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant