Amanieu / intrusive-rs

Intrusive collections for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cache length in the container

yihuang opened this issue · comments

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

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