-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Description
Because the set Iter method copies the keys into a slice, it will perform poorly for large sets, requiring a larger memory footprint and taking time to make the copy.
It may be possible to have a rangeable sequence generator that 'eats' the input set by using range to take one value at a time, immediately delete that value from the set, and return that value via the Val() T method. This would trade off the reduction in memory footprint against the need to drain the set to empty. In some cases, this might be preferable.
The method providing this behaviour might be called LazyIter to indicate its difference from the existing Iter method.
Metadata
Metadata
Assignees
Labels
No labels