Properties set/get huge speed difference?

ephemeros ephemeros at gmail.com
Sat Sep 16 18:27:54 PDT 2006


Dave wrote:
> ephemeros wrote:
>> Unknown W. Brackets wrote:
>>> Try defining the getter and setter as final.
>>>
>>> It's a function call, and it's using a virtual table as far as I 
>>> know. That's going to be a lot slower.
>>>
>>> -[Unknown]
>>>
>>>
>>
>> i tried, there is no notable difference. :(
> 
> DMD does inline inter-module 'final'.

although the program compiled with dmd is slower (0.20s) than gdc, this 
doesn't concern me now. "final" works in dmd, both gets/sets have the 
same speed.
thanks guys!



More information about the Digitalmars-d-learn mailing list