[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HardPressed
In article <C8yME1.6w4@helios.physics.utoronto.ca> neufeld@helios.physics.utoronto.ca (Christopher Neufeld) writes:
> Here's a suggestion for some later time, Andy. Would it be possible,
>or wise, to have HP produce some small auxiliary file on user request
>(another Finder extra command) which is hidden from the Finder and
>contains the complete catalog information for that subdirectory?
Yeah, it's already on my "to do" list. It can be annoying on large
directories, especially on HFS (ugh). It's easy enough to implement, but if
it isn't updated correctly you can have major problems (getting the wrong
end-of-file mark is VERY bad).
(The reason it's slower is that, to get the end-of-file mark, filetype, and
auxtype, HardPressed has to open the file up and read the first block of
data. Once the blocks are cached it happens reasonably fast, and it's not
all that noticeable on a RamFAST HD, but if you have a LOT of compressed
files in one place it can be a dog. Note that HP has no impact on accessing
uncompressed files though... those just get passed through.)
The basic plan is to store uncompressed EOF, compressed EOF, create date,
and mod date in the file. If the last three don't match the values in the
directory entry, we pitch the data. Otherwise, we use the uncompressed EOF,
filetype, and auxtype stored in the file.
Sort of Finder.Data ish.
--
fadden@uts.amdahl.com (Andy McFadden)
[ Above opinions are mine, Amdahl has nothing to do with them, etc, etc. ]