dos.library: Introduce an intermediate small buffer in InternalLoadSeg_ELF
commita2065ccfe3b399caa8a633a2fa8448012fcc6abd
authordeadwood <deadwood@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sun, 18 May 2014 18:18:40 +0000 (18 18:18 +0000)
committerdeadwood <deadwood@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sun, 18 May 2014 18:18:40 +0000 (18 18:18 +0000)
tree32a86da6e9280f4925ae1e008b674ac3e4eee46c
parent051a6752413d9b421b22c4f86c0b8b4e986e7a98
dos.library: Introduce an intermediate small buffer in InternalLoadSeg_ELF

Due to a fact that Seek flushes buffers, FRead that is used to do small
reads cannot use the buffer and re-reads directly from filesystem requiring
context switch which has a visible impact when done in large numbers.
The problem is visible with C++ executables that have a big number
of small sections and thus do many (in tens of thousands for
Odyssey) very small reads.

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@49009 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
rom/dos/internalloadseg_elf.c