[fpc-devel] Pointer cache for fast class/pointer access.
DrDiettrich1 at aol.com
Fri Dec 30 19:09:54 CET 2011
Skybuck Flying schrieb:
>> 2. Nested/delegated classes incur a pointer access penalty, the deeper
>> the nesting the higher the penalty.
> Why? Nested classes are not a problem in OPL, more in C++ (multiple
> Nested classes are a problem because of the pointer overhead.
> For example 100 nested classes will require 100 pointer lookups and thus
> 100 instructions.
Please give example code of what you consider "nested classes".
> So a good question would be: what capabilities do classes have which
> objects do not have ?
Better question: what common capabilitiers are implemented differently
in Object and TObject?
Try to answer that question first, then we'll see what you didn't
More information about the fpc-devel