todo: dont use output = NamedTemporaryFile(mode="w+b", delete=False
instead, write directly to out_f
or write to out_f + ".temp" and on success, rename to out_f
to reduce memory usage (tempfile can be on tmpfs)
to reduce disk writes (tempfile can be on ssd drive)
fix #755
todo: dont use
output = NamedTemporaryFile(mode="w+b", delete=False
instead, write directly toout_f
or write toout_f + ".temp"
and on success, rename toout_f
to reduce memory usage (tempfile can be on tmpfs) to reduce disk writes (tempfile can be on ssd drive)