• 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
hashLib - looking for someone willing to test
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hashLib - looking for someone willing to test


  • Subject: hashLib - looking for someone willing to test
  • From: has <email@hidden>
  • Date: Tue, 6 Nov 2001 19:57:14 +0000

Hi,

I've just finished writing a rather tasty library containing the following

coercelisttorecord() - converts a name-value list into a record

getRecordProperty() - get a record property, using a string as identifier

setRecordProperty() - set a record property, using a string as identifier

addRecordProperty() - prepend a new property to a record, using a string as
identifier (note: this will replace any existing record of the same name)

coercerecordtolist() - convert a record to a list of label-value pairs

(Plus a couple other related bits and pieces.)


As it stands, it uses Smile's "do script" command (for speed), so needs to
be used from inside Smile.There's instructions on how to modify it for use
with Standard Additions' "run script" (very simply to do, but BIG speed
hit). If anyone familiar with other 3rd-party script editors can tell me if
those support an equivalent command then I can add notes on those too.

I'd say that lookup times are pretty good, considering: getting a value
from a record using a string as key is about 1% of the speed of using a
direct reference via identifiers (1-2 ticks vs damn near instantaneous on
my old ibook).

Compiling lists into records also looks fairly nippy. (Going the other way
is much slower since it uses a simple parser as opposed to fancy custom
constructors, but going this direction isn't likely to be used as much
anyway.)


Now... it's a fairly hefty beast weighing in at 21K of code (although a
half of that is documentation - which I'd describe as fairly
comprehensive:). So I wouldn't mind getting a second opinion on the
documents (like, can anyone actually understand anything I write?;), plus a
couple verifications that the thing does indeed run bug-free (I've only
tested it under Smile1.8.4US on OS8.6) and across a variety of systems
(esp. OSX... anyone?).

Once I'm sure it's all tickety-boo, I'll punt it onto AppleMods for all to
see. The sooner a couple volunteers want to step forward, the sooner
everyone else will get to play with it.:) Anyone wanting to do the good
deed, mail me and I'll fire over a copy as an attachment.

Meantime, I'm going to sit down - with - a - very - large - whisky. <whew!>:)

has


  • Prev by Date: attempting to count messages in Mail
  • Next by Date: Re: Script objects 'as string' in an identifiable way
  • Previous by thread: Re: attempting to count messages in Mail
  • Next by thread: Re: Altering IE homepage URL
  • Index(es):
    • Date
    • Thread