summaryrefslogtreecommitdiff
path: root/libpsx/include/stdlib.h
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2021-10-24 02:57:40 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2021-10-24 03:10:03 +0200
commita34280dec778b7f6ba1e68450aee1c5b543aeda8 (patch)
treea56dc2569f49d8b771f5a117649241b1eef57c2a /libpsx/include/stdlib.h
parent9c6112eb5bec5e66bff092e8131839f38a2be39b (diff)
downloadpsxsdk-a34280dec778b7f6ba1e68450aee1c5b543aeda8.tar.gz
Provide buffered fread(3)
In order to reduce calls to seek(2) (which are very expensive), this commit keeps a sector-sized cache for each available FILE instance, except from the standard streams, of course. As expected, this allows calls to fread(3) to react much faster when small, contiguous chunks are read.
Diffstat (limited to 'libpsx/include/stdlib.h')
0 files changed, 0 insertions, 0 deletions