In a lot of places, we use read_all()
to read the contents of a file into a single String
/ByteBuffer
. While that may be convenient, it's got issues:
The alternative is to process new data as it comes, in a streaming fashion. This also means not storing the already processed data in memory.
This mainly concerns parsers and the like. Programs such as copy
just have to read all the input to a buffer, to be able to send that buffer to the Clipboard server, so it's fine to use read_all()
in those kinds of programs.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too