A function which decides when to compact a box.
typedef CompactionStrategy = bool Function(int entries, int deletedEntries);