2 ms·
Do the "collects" mean that memory is allocated and the whole collection stored temporarily, or is this all iterative generators? (I thought I knew Rust, but I
by Animats 11y ago
Do the "collects" mean that memory is allocated and the whole collection stored temporarily, or is this all iterative generators?
(I thought I knew Rust, but I haven't used it for a year, and its usage has changed a lot even if the core language hasn't.)
- steveklabnik 11y agocollect will ... collect it all into some kind of data structure, so yeah, that version would be doing a bunch of allocation.