> On Feb 17, 2021, at 8:27 AM, Benito van der Zander via fpc-pascal
> <[email protected]> wrote:
>
> var c: ITest;
> begin
> c := TTest.Create(123);
> c.println;
So this is where you're getting your performance penalties? Correct me if I'm
wrong but two things happen here:
1) Implicit cast to ITest which does a runtime lookup (but there's interface
name so no string comparison like Supports?)
2) calling "println" there is a call to a wrapper function (called "thunks")?
Regards,
Ryan Joseph
_______________________________________________
fpc-pascal maillist - [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal