[fpc-devel] Generics.Collections as package for Lazarus or package for FPC RTL

Marcos Douglas md at delfire.net
Fri Jan 29 14:30:39 CET 2016


On Fri, Jan 29, 2016 at 10:47 AM, Marco van de Voort <marcov at stack.nl> wrote:
> In our previous episode, Marcos Douglas said:
>> ...
>> But even if you have small objects (max 3-5 methods and few attributes...) this
>> overhead that you talk about be slow, is still considerable?
>
> That overhead is not really dependent on the size of the object.

Well, if an object is huge, more overhead to instantiate it.

>> In other words, do you consider refcounting always slow in all cases?
>
> No. Only for the most inner loops. But general container types should not
> have such limitations IMHO, which is why I use records in my container lib.

I can agree with loops.
I didn't understand "container types"... you mean a "bucket of data"?
Anyway, I will always prefer objects instead records.


Marcos Douglas



More information about the fpc-devel mailing list