Relatively speaking, yes.  Running both forms through MetaBench verifies
that indeed "the owner of me" is about 80% faster.

But considering that parsing the long ID only takes 0.0022 ticks to execute,
the flexibility will probably be worth a speed difference not likely to be
noticeable by humans, at least as a workaround until we see the long ID
returned (2.4 GM maybe?).  'Less of course you've some reason to run this
several thousand times in a row, but even then the fast thing to do would be
to parse it just once and then store the parent's long ID in its own var.


These are the scripts I ran in MetaBench last time I looked into it (on a G4
500):

        get the owner of me

 4 ticks to execute 10,000 times (0.0004 ticks/iteration)


        get the long id of grp ID (word 8 of the long id of me)

 22 ticks to execute 10,000 times (0.0022 ticks/iteration)


MeteBench can be downloaded at:
<ftp://ftp.fourthworld.com/MetaCard/4W_MetaBench.mc.sit.hqx>



David Bovill wrote:

> Thanks - I did that last time as well. Too slow for my needs so I think I'll
> stick to leaving the names empty -:)
> 

>> David Bovill wrote:
>> 
>>> I can't find the reference...
>>> 
>>> Scott fixed this issue in one of the recent MC releases - the problem occurs
>>> when you have multiple groups with the same name, and refer to objects using
>>> "the owner"
>>> 
>>> In this scenario:
>>> 
>>> put the id of the owner of speechFldObject
>>> 
>>> gets confused, because the owner works by returning the name not the id
>>> (it's a property I think). Anyone know how to get around this/what
>>> version/change ws made?
>>> 
>>> NB the work around I am using at the moment is not to give the groups names
>>> - that way the owner correctly identifies the real owner and not another
>>> group with the same name.
>> 
>> I just reported that as a bug.  The long id is useful, the name is not.
>> 
>> The workaround is to parse the long id of the object to obtain its ownership
>> chain.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Multimedia Design and Development for Mac, Windows, UNIX, and the Web
 _____________________________________________________________________
 [EMAIL PROTECTED]                 http://www.FourthWorld.com
 Tel: 323-225-3717           ICQ#60248349            Fax: 323-225-0716



Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to