diff options
author | Bastien Bouclet | 2019-10-20 09:23:51 +0200 |
---|---|---|
committer | Bastien Bouclet | 2019-11-20 20:54:23 +0100 |
commit | f8d551803cfb6c1db3d24f7ef2731c652b9a5313 (patch) | |
tree | c955443ba2caef69eab51a969c4cb003ae3c8edb /backends/module.mk | |
parent | be0304d9d618a48acaeff3ef8ecb2f73a510e926 (diff) | |
download | scummvm-rg350-f8d551803cfb6c1db3d24f7ef2731c652b9a5313.tar.gz scummvm-rg350-f8d551803cfb6c1db3d24f7ef2731c652b9a5313.tar.bz2 scummvm-rg350-f8d551803cfb6c1db3d24f7ef2731c652b9a5313.zip |
POSIX: Use fstat instead of fseek / ftell to retrieve file stream sizes
fstat is generally faster as is does not cause the IO buffer to be
invalidated / refilled.
Benchmark results for the startup time of the SCI engine with Gabriel
Knight 1 CD:
- Linux, glibc, spinning HDD, fseek/ftell: 140 ms
- Linux, glibc, spinning HDD, fstat: 100 ms
- 3DS, newlib, SD card, fseek/ftell: 68 s
- 3DS, newlib, SD card, fstat: 11 s
Diffstat (limited to 'backends/module.mk')
-rw-r--r-- | backends/module.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/module.mk b/backends/module.mk index 0ed597882b..924164c03f 100644 --- a/backends/module.mk +++ b/backends/module.mk @@ -163,6 +163,8 @@ ifdef POSIX MODULE_OBJS += \ fs/posix/posix-fs.o \ fs/posix/posix-fs-factory.o \ + fs/posix/posix-fs-factory.o \ + fs/posix/posix-iostream.o \ fs/posix-drives/posix-drives-fs.o \ fs/posix-drives/posix-drives-fs-factory.o \ fs/chroot/chroot-fs-factory.o \ |