realbasic-plugins
[Top] [All Lists]

Re: [REQUEST] dynamic access

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: [REQUEST] dynamic access
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Mon, 24 May 2004 08:47:13 -0500
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
List-help: <mailto:realbasic-plugins-request@lists.realsoftware.com?subject=help>
List-id: REALbasic Plugins <realbasic-plugins.lists.realsoftware.com>
List-post: <mailto:realbasic-plugins@lists.realsoftware.com>
References: <BCD77308 dot 1BC4E%sunshine at public dot kherson dot ua>
At 9:38 AM +0300 5/24/04, Ruslan Zasukhin wrote:

 > Yes, but again, if you find that setting or getting properties is too
 > slow for your purposes, you should file a feature request and we'll
 see what we can do.

Joe, but Bjorn have prove as I understand that they are MUCH slower of
direct call.

Yes, but "much slower" is not the same thing as "too slow." Is there any real-world app where the time spent inside REALLoadObjectMethod accounts for even 1% of the CPU time during some process?

If not, then even eliminating this method entirely could not speed that part of the app up by as much as 1%, and it would be incorrect for us to make the framework code larger and more complex for no perceivable benefit.

The BEST way you could use I think is

    * convert string into HASH value, i.e. Into number.
    * usage of HASH MAP. So you probably get in most cases 1 step
        of search in hash. May be 2 steps in worse case.
        this take into account that inside of class there is not many
        props and methods (20-30-50).

Is this correct?

I certainly agree (and this is how both RB dictionaries work, as well as our internal string map which we use for various things in the framework).

Is it a secret how exactly it is implemented?

Yes, we don't want to talk about the implementation details because they are subject to change (mainly due to feedback from you, our plugin developers, but also due to ongoing changes in how the language and framework operate as RB evolves).

Best,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>