Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | io: add bufreader | bptato | 2024-03-21 | 1 | -11/+24 |
| | | | | analogous to bufwriter | ||||
* | buffer: also buffer reads for packets | bptato | 2024-03-20 | 1 | -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 BuferedWriter | bptato | 2024-03-16 | 1 | -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 |