[fpc-pascal] Generics vs templates

Sven Barth pascaldragon at googlemail.com
Wed Jan 10 07:47:19 CET 2018

Am 10.01.2018 07:39 schrieb "Marco van de Voort" <marcov at stack.nl>:

In our previous episode, Sven Barth via fpc-pascal said:
> Precisely these virtual methods are one point. They might not add much by
> themselves, but if they're called for each Add or Remove operation they
> add quite a bit.
> Why do you think that the TFP(Object)List classes don't have notification
> support unlike T(Object)List? Even if it only checks whether a
> handler is assigned it's enough for a noticeable difference in

But Graeme compared Delphi TList to Delphi TList<> so both have notifiers?

That was more about what a difference the existence of notifiers can have
to highlight what performance difference generic capable code can have
compared to non-generic code.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180110/5ce64499/attachment.html>

More information about the fpc-pascal mailing list