Open yihuang opened 5 years ago
Could we cache total count of items in the container, and provide len() with constant complexity.
len()
Maybe this could be provided as a configurable option? Maybe part of the adapter trait?
Could we cache total count of items in the container, and provide
len()
with constant complexity.