contents   index   previous   next

SE_OBJ_POOL_SIZE (1024, 128 if JSE_MIN_MEMORY is on)


ScriptEase maintains a pool of objects for its needs so that it doesn't need to allocate and free objects to the system as often. The bigger the pool, the less system allocation is required at the expense of more memory used by the pool. Also, the emptying of the pool triggers garbage collection, so the bigger the pool, the longer ScriptEase can go between garbage collections.


Because emptying a pool triggers garbage collection, reducing the pool sizes below the value for a JSE_MIN_MEMORY build will cause ScriptEase's execution speed to slow drastically due to constant collection while freeing up very little memory. It is advised that you treat 128 as the minimum for this define.


SE_MEM_POOL_SIZE (1024, 128 if JSE_MIN_MEMORY is on)