3 ms·
That’s because the directory iterator isn’t random access, and I don’t see a way to get the functionality you want in any language, not just C++.
by saagarjha 8y ago
That’s because the directory iterator isn’t random access, and I don’t see a way to get the functionality you want in any language, not just C++.
- stochastic_monk 8y agoTo do that, you’d have to buffer records from the file and dispatch threads to perform your task. Lazily loading can be preferable for large workloads, but it requires fine-grained threading. (And probably dedicated reading/writing threads and/or locks.) That’s a lot more work than this, though.