scsh-hackers
[Top] [All Lists]

[Scsh-hackers] Saving calls to file-info

To: scsh-hackers <scsh-hackers@lists.sourceforge.net>
Subject: [Scsh-hackers] Saving calls to file-info
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Mon Jul 1 01:45:01 2002
List-id: Discussion among the implementors <scsh-hackers.lists.sourceforge.net>
Sender: scsh-hackers-admin@lists.sourceforge.net
Section 3.3 "File system" defines a whole bunch of procedures which
take a fname/fd/port as argument and call to file-info and inspect the
file-info record (file-type...file-last-status-change,
file-directory?...file-symlink?,
file-not-readable?...file-executable). The file-info record however is
not passed to the outside so that subsequent operations on the same
file will call file-info again and again which means a huge performance
overhead.

First calling file-info and operating on the obtained record
afterwards means far less overhead but is also less comfortable since
the procedures mentioned above do not exist.

I think we can easily remedy this by allowing the mentioned procedures
to accept a file-info record as argument.

Opinions?

-- 
Martin


<Prev in Thread] Current Thread [Next in Thread>