Tuesday 06 September 2005 09:28, Janne Blomqvist wrote:
Sat, Sep 03, 2005 at 09:23:52PM +0300, Janne Blomqvist wrote:
Hello,
the attached patch provides a partial fix for the performance issues
in PR 21820 and 23363. Partial, as in improving performance 20-fold
for some cases but still being far away from other compilers. The
patch also solves all mmap related correctness problems, by removing
mmap support from the runtime library.
If we want to keep mmap (perhaps there are situations where it does
bring better performance, although my guess is not measurably so with
the current fine-grained io library), it would be relatively
straightforward to e.g. add a check for a GFRTRAN_USE_MMAP
environment variable when opening a file. That way we'd get the
performance advantages of fd while still enabling those who want mmap
to use it.
All the benchmarks I can remember seeing show that our mmap implementation
sucks, and we're better off using the fd backend.
My recommendation is to either rip out the mmap code, or come up with a plan
for making it consistently perform well.
I'm tempted to say rip it out anyway. As Tobi says, we have version control if
anyone wants to revive it.
Paul