From a607ebac400857534582f0f50f0817ecc81812a6 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 18 Jun 2023 00:41:17 +0200 Subject: libc: experimental fread buffering support makes find(1) run 3x faster --- src/user/lib/include/stdio.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/user/lib/include/stdio.h') diff --git a/src/user/lib/include/stdio.h b/src/user/lib/include/stdio.h index a030f13..48d5058 100644 --- a/src/user/lib/include/stdio.h +++ b/src/user/lib/include/stdio.h @@ -14,11 +14,10 @@ #define SEEK_END 3 #define _IONBF 0 -#define _IOFBF 0 -#define _IOLBF 1 +#define _IOFBF 1 +#define _IOLBF 2 -/* size of file buffers. not that we have any */ -#define BUFSIZ 1024 +#define BUFSIZ 4096 /* stop fread() from trying to fill the entire buffer before returning * i.e. it will call _sys_read() exactly once */ -- cgit v1.2.3