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

Cache length in the container #34

Open
yihuang opened this issue Jul 26, 2019 · 1 comment
Open

Cache length in the container #34

yihuang opened this issue Jul 26, 2019 · 1 comment

Comments

@yihuang
Copy link

yihuang commented Jul 26, 2019

Could we cache total count of items in the container, and provide len() with constant complexity.

@Amanieu
Copy link
Owner

Amanieu commented Jul 26, 2019

Maybe this could be provided as a configurable option? Maybe part of the adapter trait?

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

No branches or pull requests

2 participants