Re: Problems with speed & "Info For"
Re: Problems with speed & "Info For"
- Subject: Re: Problems with speed & "Info For"
- From: Brian Johnson <email@hidden>
- Date: Tue, 29 Jan 2002 10:12:34 -0800 (PST)
On Tue, 29 Jan 2002, Kai Edwards wrote:
>
> Date: Sun, 27 Jan 2002 21:34:51 +1100
>
> From: Shane Stanley <email@hidden>
>
>
>
> Keep in mind that "folder of info for" is highly dependent on how many files
>
> are in the folder and its subfolders; big folders can take a long time.
>
>
Wow! - You're not kidding, are you Shane?
I've been following this discussion somewhat closely, as I have a fairly
mature script that works well enough, but I'm now trying to speed up. It
walks a folder hierarchy of HTML files, building links between them. In
the process I use "Info For" on just about every file in the hierarchy,
which probably accounts for some of the speed problems. The thing is, the
script has to detect folders (ends with ":" looks good here) and aliases
to folders (alias of info for ..) and file types (file type of info
for...) all of which involves at least one call to "Info for". The
"Galapagos Suite" in Tanaka's OSAX looks promising for some of this, but
are there other 'classic' ways (like "ends with") to avoid "Info for"?
Thanks!
BTW, I'm caching the "Info For" stuff using a list of records.... try this
set myList to {}
copy (info for (choose file)) to end of myList
copy (info for (choose file)) to end of myList
myList
to get a list consisting of two records with a lot of matching fields
duplicated.
Brian Johnson, Dept of Architecture, University of Washington, Seattle