Index: [thread] [date] [subject] [author]
  From: Huned M. Botee <huned.botee@duke.edu>
  To  : 
  Date: Wed, 03 Mar 1999 21:18:49 -0500

tip: fast reads for goof(i)

You'll be creating and reading really large index files for goof and
goofi, respectively. As noted in the spec., you'll want to avoid using
C++ streams for reads/writes because they're really hideously slow.

The index files will get big and you'll end up waiting around 20+
minutes while your cool program creates said index. Likewise with
reading it.

So, you put aside C++ and use plain C, which is sometimes ok to use.
This is one of those cases. Anyway, unix provides a system "read"
command that reads things REALLY fast. You should consider using it. It
won't make your code pretty, but speed is preferable in this case.

You can find some examples on using the system read command at the
following URL:

http://www.cs.duke.edu/~ola/courses/cps108/code/reading/

cheers folks.

--huned

Huned M. Botee, cps108 guy
huned.botee@duke.edu


Index: [thread] [date] [subject] [author]