Fast KeyChain Functions...
Fast KeyChain Functions...
- Subject: Fast KeyChain Functions...
- From: David Crowe <email@hidden>
- Date: Tue, 24 May 2005 14:47:19 -0600
The inability of the KeyChain to process commands like "key whose
name is..." makes access unbearably slow.
To combat this I've written a script that creates an on-disk index
(simply a list of the key names) for any keychain and uses that for
more rapid access.
I haven't tried this in Tiger, and who knows, maybe they've fixed
this problem, so I've just wasted my time :(
Anyway, the script is at:
http://www.davidcrowe.ca/AppleScript/fastkeychainfunctions.zip
for anybody who'd like to play around with it.
The performance, on my slow machine, is about 1-2 seconds to get an
arbitrary key (assuming that the KeyChain hasn't recently been
changed, in which the index has to be updated) versus about 10
seconds to process "name of every key of keychain x", which would be
more straightforward (plus the overhead of scanning that list and
then accessing the keychain).
The complexity comes from an attempt to update the index on the fly,
without reading it all back in every time a key is added or deleted.
Any feedback would be appreciate - bug fixes, simplifications, etc.
- David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden