3 ms·
I recently rewrote some streaming code to slurping. While there are theoretical advantages to streaming, unless you really really need them the drawbacks are no
by foreigner 7y ago
I recently rewrote some streaming code to slurping. While there are theoretical advantages to streaming, unless you really really need them the drawbacks are not worth it. My comment in the code was "Streaming is hard, memory is cheap."
- anonymoushn 7y agoThis sounds quite sad.
- JMTQp8lwXL 7y agoIt really depends on the problem space. Mobile phones and browsers only have so much memory available so you have to be mindful of memory consumption there.
- falcolas 7y agoMemory can be relatively cheap (at least up to the 1TB point), but you still need to account for hard software development problems - such as populating that large blob of data into memory from across the network, in a fault tolerant fashion.