Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?)


In 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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: