3 ms·
If you can live with "fits on disk" mmap() is a viable option? Unless you truly need streaming (early handling of early data, like a stream of transactions/oper
by e12e 3y ago
If you can live with "fits on disk" mmap() is a viable option? Unless you truly need streaming (early handling of early data, like a stream of transactions/operations from a single JSON file?)
- mannyv 3y agoIn general, JSON comes over the network, so MMAP won't really work unless you save to a file. But then you'll run out of disk space. I mean, you have a 1k, 2k, 4k buffer. Why use more, because it's too much work?