<p>Am 29.01.2016 12:28 schrieb "Marco van de Voort" <<a href="mailto:marcov@stack.nl">marcov@stack.nl</a>>:<br>
><br>
> In our previous episode, silvioprog said:<br>
> > > The format of interface VMTs could also differ per platform so considering<br>
> > > that as more stable only holds true because of what we currently support.<br>
> > ><br>
> > Sorry for ask here, but, don't you recomment to use interfaces? I'm making<br>
> > a project and I'm planning to use some COM interfaces to make something a list<br>
> > adapter<br>
> > <<a href="http://developer.android.com/reference/android/widget/ListAdapter.html">http://developer.android.com/reference/android/widget/ListAdapter.html</a>>.<br>
><br>
> Interfaces are relatively slow. Not only because of the refcounting, but<br>
> returning interfaces in a tight loop (e.g. to get the elements of an<br>
> enumeration) would be a new allocation each time.</p>
<p>Note: the enumerator of a for-in is only fetched once before the loop, so it does not really matter whether it's an interface or record as long as the elements themselves aren't on demand allocated interfaces.</p>
<p>Regards,<br>
Sven</p>