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>
|