1. Re: New Project Problems
- Posted by Ralf Nieuwenhuijsen <nieuwen at XS4ALL.NL>
Oct 01, 1998
-
Last edited Oct 02, 1998
>If you want to read a file REALLY, REALLY fast, you can use doswrap.e:
Correct. For really large files, Jaquesch wrote this neat library:
Instead of having to check for an EOF each time, it will purge the whole
file (or much of it) into a memory cache. And then we have Euphoria convert
it in one pass, instead of many small ones. (because we need to check for an
EOF each time) ..
Maybe Robert, wants to optimize I/O. In such ways, that EOF the the
while-until-eof-block is completely optimized. Or supply a new
(machine_func) routine that purges a whole file at once.
For EDOM, one third of all time is spent on I/O.
The reason that reading is so much slower, than writing, is because I can
write in one long pass.
And the read speed of files are much more crucial for 99% of the programs.
Ralf