3 ms·
How do you figure? He's not using any reference types, and he's using a language that doesn't even have a GC. It's likely the Set<Path> will use heap allocati
by ken 6y ago
How do you figure? He's not using any reference types, and he's using a language that doesn't even have a GC.
It's likely the Set<Path> will use heap allocation internally (there isn't really a way around that), but it's only holding a small value type.
Besides, this wasn't a streaming interface before this change, either. In the first version, all elements were held in an array already.
- thelazydogsback 6y agoAFAIK Swift supports GC, though only simple ref-counting at the moment. Yes, it's the Set<Path>s that I'm talking about.