A long while back, sperber(a)informatik.uni-tuebingen.de (Michael Sperber
[Mr. Preprocessor]) wrote:
> I don't know about NT, but stat() is VERY expensive
under Win95.
> If I recall correctly, a call to stat() takes on the order of
> milliseconds on a non-MMX P166 (and I think over 10ms), under Win95
> OSR2. Why, I don't know (this is real/elapsed, and not CPU, time). By
> bypassing stat(), and using the native Win32 system calls, my dired-in-C
> changes were able to get a significant performance improvement.
That's why I asked if there isn't a way to compute file-directory-p
without doing a full stat under Win32. Don't DOS directories store
that information in the directory entry?
There is a way to do file-directory-p without doing a stat() under
Win32, but I don't know if it will save any time. (Actually, I added
this to my local copy of XEmacs, but I really haven't done any timings.
I certainly haven't noticed any speed difference. I'll try to do some
timings tonight.)
[ Going off on a complete tangent, Insight (
http://www.insight.com)
seems to have a great special on old 200MHz Pentium Pros, which might
make great Unix boxes. Toshiba's getting out of the desktop business,
and their Equium 6200M is going for $800, without monitor. You get a
4GB fast/wide SCSI disk (the controller is supposedly based upon the
AHA-7880), an Intel EtherExpress PRO/100B LAN, 32MB EDO/ECC RAM, 12X
IDE CDROM, ATI Rage 3D video, USB ports, & Windows NT 4.0. I've also
heard that it's using an Intel dual PPro motherboard, so you can have
SMP if you can find a matching CPU. The downsides seem to be that the
F/W SCSI disk is a Micropolis (no longer in business), that the disk
needs firmware upgrades to work with Unix, and that there is no
external SCSI connector. I ordered one, and we'll see how it works
out. ]
-- Darryl Okahata
Internet: darrylo(a)sr.hp.com
DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion, or policy of Hewlett-Packard, or of the
little green men that have been following him all day.