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/plugins | |
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/plugins')
0 files changed, 0 insertions, 0 deletions