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

Efficient BiMap cloning #734

Open
hacker1024 opened this issue Jun 19, 2023 · 0 comments
Open

Efficient BiMap cloning #734

hacker1024 opened this issue Jun 19, 2023 · 0 comments

Comments

@hacker1024
Copy link

It's common to clone maps when using state management patterns such as Redux that require immutable data structures.

At the moment, the only way to clone a BiMap is with BiMap()..addAll(oldMap), which is not very efficient. It'd be great if a more efficient implementation was added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants