Newsgroups: comp.lang.lisp
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!gatech!howland.reston.ans.net!ix.netcom.com!netcom.com!NewsWatcher!user
From: hbaker@netcom.com (Henry Baker)
Subject: Re: Q: fast read-line, file I/O in lisp
Message-ID: <hbaker-2603951512460001@192.0.2.1>
Sender: hbaker@netcom18.netcom.com
Organization: nil
References: <3ku8eu$i11@sunserver.lrz-muenchen.de>
Date: Sun, 26 Mar 1995 23:09:02 GMT
Lines: 24

In article <3ku8eu$i11@sunserver.lrz-muenchen.de>,
jolo@lft.mw.tu-muenchen.de wrote:

> Hello,
> 
> i have to read a finite element result file, which contains several thousand
> ouput lines. The standard functions read-char or read-line need to much time
> for that operation.
> Has anybody realized a faster read-line or read-char function in lisp, with a
> performance comparable or equivalent to C getchar.

I added support for memory-mapped I/O in KCL on an i860 Unix platform.

If someone knows C, Unix and KCL, it isn't a terribly difficult thing
to do.

A bigger problem is what to do with the stuff you mapped in.  E.g., it
had better be binary-compatible with your machine, or it will be worthless.
This means that your file has to have the right byte-ordering and floating
point formats.

-- 
www/ftp directory:
ftp://ftp.netcom.com/pub/hb/hbaker/home.html
