Re: [fpc-pascal] How is interface variable implemented?

2018-08-25 Thread Sven Barth via fpc-pascal
Dennis schrieb am Fr., 24. Aug. 2018, 13:11: > The run results: > Object call Time Taken Seconds: 2.1899964194744825E-001 > Interface call Time Taken Seconds: 2.799001622200E-001 > > so, the time difference is about 27% > > > My question is, where is this extra time spent? > > I am assuming a

[fpc-pascal] How is interface variable implemented?

2018-08-24 Thread Dennis
if I have this test program below: program testi; {$INTERFACES CORBA} uses sysutils; type   IInterfaceA = interface procedure Increment ;   end;   { TObjectA }   TObjectA = class(IInterfaceA)     Value : Int64;     procedure Increment;   end; var   c : int32;   i : IInterfaceA;   obj : TOb