hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 45a6c80e10ef21947061fa5baf5284ca8a53b2df
parent d9fb4e18a44447eb1ce497b4c44945e6b1c3a84b
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 10 Apr 2021 11:44:09 -0400

os: set BUFSIZ back to 4096

Upon closer examination, 4 KiB works just as well as 1 MiB. I must have
had an error in my testing rig.

Diffstat:
Mos/+linux/stdfd.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/os/+linux/stdfd.ha b/os/+linux/stdfd.ha @@ -9,7 +9,7 @@ let static_stdin_bufio: bufio::bufstream = bufio::bufstream { ... }; let static_stdout_bufio: bufio::bufstream = bufio::bufstream { ... }; // The recommended buffer size for reading from disk. -export def BUFSIZ: size = 1048576; // 1 MiB +export def BUFSIZ: size = 4096; // 4 KiB @init fn init_stdfd() void = { stdin = static_fdopen(0, "<stdin>", io::mode::READ, &static_stdin_fd);