ChunkList(Int32, Boolean) Constructor
Initializes a new instance of the ChunkList<T> class.
Namespace: DevExpress.Xpf.ChunkList
Assembly: DevExpress.Xpf.Core.v24.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
capacity | Int32 | The approximate number of items in the data source. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
useChunksCache | Boolean | False | true, to store chunk indexes for collection items in a special hash table; otherwise, false. |
Remarks
The chunk size is calculated based on the value of the capacity parameter:
int chunkSize = Math.Sqrt(capacity);
If the useChunksCache parameter is set to true, the ChunkList<T> instance will store chunk indexes for collection items in a special hash table. The hash table will take up additional memory, but chunk indexes for items will be retrieved almost instantly.
See Also