Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!david From: david@utzoo.UUCP (David Trueman) Newsgroups: hacknews Subject: ls(1) speedup and cleanup Message-ID: <5679@utzoo.UUCP> Date: Thu, 6-Jun-85 17:43:25 EDT Article-I.D.: utzoo.5679 Posted: Thu Jun 6 17:43:25 1985 Date-Received: Thu, 6-Jun-85 17:43:25 EDT Organization: U of Toronto Zoology Lines: 15 Ls(1) now caches login (or group) names to speed up `ls -l' in directories with files owned by several users (like /tmp). When run on a moderately busy system, it typically runs at twice the speed for /tmp. At the same time, the code was changed to use several library routines including the directory scanning routines, mtorwx(3) and warning(3) and error(3). The use of the last two results in slightly different, but more informative diagnostics. The use of the directory scanning routines was not suitable for the `-f' option, so ls now punts to bls(1) for this function. Stay tuned for an even better caching scheme. -- David Trueman @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!david