aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os
diff options
context:
space:
mode:
authorLucas Santos <117400842+LucasSantos91@users.noreply.github.com>2024-09-23 21:20:27 -0300
committerGitHub <noreply@github.com>2024-09-23 17:20:27 -0700
commitb19d0fb0fd3e4ff023968e77f01848ffb9dce360 (patch)
tree3b591d1f39f59a13377c6a17d5b9a891fd8b0add /lib/std/os
parentd1901c744c9bf2862f99be837325e0a50365c38b (diff)
downloadzig-b19d0fb0fd3e4ff023968e77f01848ffb9dce360.tar.gz
zig-b19d0fb0fd3e4ff023968e77f01848ffb9dce360.zip
Improve efficiency of buffered_reader. (#21256)
The previous implementation of buffered_reader always reads from the unbuffered reader into the internal buffer, and then dumps the data onto the destination. This is inefficient, as sometimes it's possible to read directly into the destination. The previous strategy generates more memory copies and unbuffered reads than necessary.
Diffstat (limited to 'lib/std/os')
0 files changed, 0 insertions, 0 deletions