Cache length in the container
yihuang opened this issue · comments
yihuang commented
Could we cache total count of items in the container, and provide len()
with constant complexity.
Amanieu d'Antras commented
Maybe this could be provided as a configurable option? Maybe part of the adapter trait?