The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:property AllocSize: integer;

The property AllocSize determines how much memory is allocated when the number of entries of the data container is increased. Memory is allocated in chunks of AllocSize chart items (each of which consumes approx. 60 bytes). By default, AllocRowsBy is set to 1000; it should be increased if more than a few thousand chart elements are to be displayed by the component.

If, for example, AllocSize is set to 20000, room for an additional 20000 data container elements is allocated if the currently reserved memory is exceeded. The optimal allocation size is always controlled by a compromise between optimum performance (high allocation size) and minimum memory consumption (small allocation size).

Hint: Please note that setting AllocSize too high would result in extensive reservation of memory which could slow down systems with little memory considerably. For example, setting AllocSize to 200000 would result in a minimum allocation of approx. 12 MB of memory, another chunk of 12 MB will be reserved when the 200001th chart element is to be drawn.

Last Update: 2012-Oct-20