Wow, REALGetPropValue is very slow.

Ruslan Zasukhin sunshine at public.kherson.ua
Thu May 5 23:24:53 CDT 2005


Hi All,

I have play with one test example, and have found that if to use

    Vfield.Value        which is variant

Instead of using the types values of each clas
    Vshort.Value  Vlong.Value, ...

Then we get almost 100 times slower work.
100 times, exactly! 98 seconds vs about 1 second.


I have check by profiler, and see that problem is with REALGetPropValue().
It eats 98% of test.

REAL, I think here you must improve a lots something...
May be you use linear search to find property ?


ATTENTION:
    so for all Valentina users,
    I will recommend NOT to use Vfield.Value as Variant.

We could expect that variant will require some payment for comfort.
But 100 times slow down is not acceptable IMHO.
At least you should avoid it in tight loops.


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list