substack/osm-pbf-parser — pull request #2 by astro (2014-06-04 13:15:14+00:00)
Title: disable readable buffering

If I understand correctly, readable buffering doesn't make much sense here as parsing doesn't defer and is therefore CPU-bound. When pipeing to a slow consumer (LevelDB) this reduces memory usage from 1.4 GB RSS down to about 0.2 GB.

Perhaps a bit of buffering would be beneficial but the current 16384 * 8000 nodes is a lot of data to have in RAM.