RAD Studio VCL Reference
IInterfaceList.Capacity Property

Specifies the list capacity.

property Capacity: Integer;
__property int Capacity;

Use Capacity to determine the list capacity. Before adding many interfaces to the list, you can improve performance by setting Capacity to the final number of interfaces. This prevents the interface list from having to reallocate the list every time an interface is added. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!