wvwwvwwv / scalable-concurrent-containers

High performance containers and utilities for concurrent and asynchronous programming
Apache License 2.0
285 stars 14 forks source link

len() for Queue, Stack, Bag #125

Closed beckend closed 5 months ago

beckend commented 5 months ago

Possible to request to get a hint on the length of these?

wvwwvwwv commented 5 months ago

Yes, absolutely possible, but unfortunately, the time complexity will be O(N) since there is no dedicated field for tracking the count of entries. I'll implement len methods for those data structures.

wvwwvwwv commented 5 months ago

Uploaded SCC 2.0.13 just now!

beckend commented 5 months ago

Thanks!