Constructor LinkedListNodeCache
LinkedListNodeCache()
Create a LinkedListNode cache. This is intended to be used to reduce GC allocations for LinkedLists.
Declaration
public LinkedListNodeCache()
LinkedListNodeCache(int, int, int)
Create a LinkedListNode cache. This is intended to be used to reduce GC allocations for LinkedLists.
Declaration
public LinkedListNodeCache(int maxNodesAllowed, int initialCapacity, int initialPreallocateCount)
Parameters
Type | Name | Description |
---|---|---|
int | maxNodesAllowed | Specify a number greater than zero to limit the number of nodes that can be in the pool. |
int | initialCapacity | Specify a number greater than zero to preallocate a certain number of nodes. |
int | initialPreallocateCount | The number of nodes to start in the linked list cache. |