• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fast KeyChain Functions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Fast KeyChain Functions...
      • From: kai <email@hidden>
  • Prev by Date: Re: Applescript an Automator action?
  • Next by Date: Re: Fast KeyChain Functions...
  • Previous by thread: Re: Activate a feature via shortcut key event (as opposed to direct scripting)
  • Next by thread: Re: Fast KeyChain Functions...
  • Index(es):
    • Date
    • Thread