[fpc-devel] performance tests: reference counted vs non-reference counted
Graeme Geldenhuys
graemeg.lists at gmail.com
Fri Nov 16 12:05:17 CET 2007
On 16/11/2007, Michael Schnell <mschnell at lumino.de> wrote:
>
> Reference counting needs some additional code that is executed without
> writing additional instructions in the main line code. So it's no wonder
> it costs some performance.
Yes that I understand and I'm not arguing the point. Well, that's
actually what I expected. The thing is the performance is opposite
when you compare FPC and Delphi using TInterfacedObject.
Then looking at our MyBaseObject, the performance degraded a lot!!
> * Why is our non-reference counted implementation faster than TObject
> under FPC? We even changed the order of tests to see if that makes
> a difference, but it didn't. See test result 3.
And again quoting my original mail. Why is our "non-reference
counted" object which in theory should be the same as TObject, faster
than TObject?? This result appears under FPC only.
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the fpc-devel
mailing list