Skip to content
Commit 434eaffd authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

import-blocks: Do not read `stdin` to memory (#11072)

* import-blocks: Do not read `stdin` to memory

This fixes a bug with `import-blocks` reading the entire `stdin` before starting to import the
blocks. However, for huge files that uses quite a lot of memory. We can just read from `stdin` step
by step as we do it with a file. This ensures that we don't read the entire input at once into memory.

* FMT

* Fix warning
parent 522e5d13
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment