about summary refs log tree commit diff stats
path: root/src/io/bufwriter.nim
Commit message (Collapse)AuthorAgeFilesLines
* io: add bufreaderbptato2024-03-211-11/+24
| | | | analogous to bufwriter
* buffer: also buffer reads for packetsbptato2024-03-201-4/+5
| | | | | Since we know the length of packets, we can also read them in in one call. Though I really wish we could do this without the StringStream.
* io: add BuferedWriterbptato2024-03-161-0/+175
Unsurprisingly enough, calling `write` a million times is never going to be very fast. BufferedWriter basically does the same thing as serialize.swrite did, but queues up writes in batches before sending them. TODO: give sread a similar treatment