Use Re-usable Objects Cache (-reusableObjects) to specify the number of deleted class objects that the AVM stores for later re-initialization.

Operating system and syntax UNIX / Windows -reusableObjects cache-size
Use with Maximum value Minimum value Single-user default Multi-user default
Client Session 2147483647 0 25 25
cache-size
Number of deleted class objects to store for later re-initialization.

This parameter can improve the performance of applications that use ABL classes. When a class object is deleted, either by the DELETE OBJECT statement or through garbage collection, the AVM caches the object. When the AVM instantiates the same class later, the stored object is re-initialized and removed from the cache. This reuse saves much of the overhead of instantiating a class.

Note: The cache only stores class-based objects. However, the cache does not store objects that do not have saved r-code, e.g., .NET classes, .NET-derived ABL classes, classes with static elements, or session-compiled classes. Using the startup parameter to change the cache size has no effect on this behavior.

The cached class objects continue to hold some resources. You might want to modify the settings of Directory Size (-D) and Maximum Memory (-mmax) to account for the number of cached objects.

For more information about the reuse of objects, see DELETE OBJECT statement in ABL Reference and Garbage collection in Develop Object-oriented ABL Applications.