Previous: , Up: Persistence   [Contents][Index]


8.8 Sleep strategies

Sleep strategies are what determine which objects should be kept awake and which should be put to sleep at the end of each churn. They are informed by Goblins when and how an object is used and then asked to provide a list of the objects which should be put to sleep. This allows for many different strategies to be used, depending on the needs of the program. It also allows bespoke strategies to be defined and used where existing ones aren’t sufficient.