[fpc-devel] Generics.Collections as package for Lazarus or package for FPC RTL
Marcos Douglas
md at delfire.net
Fri Jan 29 12:35:12 CET 2016
On Fri, Jan 29, 2016 at 9:28 AM, Marco van de Voort <marcov at stack.nl> wrote:
> In our previous episode, silvioprog said:
>> > The format of interface VMTs could also differ per platform so considering
>> > that as more stable only holds true because of what we currently support.
>> >
>> Sorry for ask here, but, don't you recomment to use interfaces? I'm making
>> a project and I'm planning to use some COM interfaces to make something a list
>> adapter
>> <http://developer.android.com/reference/android/widget/ListAdapter.html>.
>
> Interfaces are relatively slow. Not only because of the refcounting, but
> returning interfaces in a tight loop (e.g. to get the elements of an
> enumeration) would be a new allocation each time.
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?
In other words, do you consider refcounting always slow in all cases?
Marcos Douglas
More information about the fpc-devel
mailing list