UseBatchAllocation Method
Description
Call this method to enable the batch allocation feature for grid rows.
Syntax
Public Function UseBatchAllocation() As Boolean
Return Type
Boolean: Returns True if the batch allocation feature is enabled for grid rows, False otherwise.
Remarks
Batch allocation means that memory will not be allocated for each object created, but for many objects at one time (for 1024 objects by default). Any new allocations will take memory from this large block. New blocks will be allocated when necessary. This increases performance and reduces heap fragmentation.
This batch allocation mechanism is responsible for the allocation/deallocation of blocks of memory from the heap and internally organizes the free/busy lists of memory pieces (keeps track of objects in memory blocks). When an object is deleted, its memory stored in the block is freed and used for new objects. When all memory pieces from a block are free, it may be deallocated from the heap automatically by a call to FreeBatchExtraData. UseBatchAllocation must be called on initialization before any grid object allocations are created.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.