Skip to content

Commit 6ae8873

Browse files
authored
remove readlines()
stdin.readlines() is causing the entire output of tippecanoe-decode to be buffered instead of streamed. For very large mbtiles (like the United States), this generates unreasonably high memory usage.
1 parent 086ff8c commit 6ae8873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

label_maker/stream_filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
bbox = box(*json.loads(sys.argv[1]))
77

8-
for line in sys.stdin.readlines():
8+
for line in sys.stdin:
99
geo = json.loads(line)
1010
geom = shape(geo['geometry'])
1111
geo.pop('tippecanoe')

0 commit comments

Comments
 (0)