shouldCompactPreemptively abstract method

bool shouldCompactPreemptively(
  1. int currentTokens,
  2. int maxTokens
)

Returns true if preemptive compaction should trigger.

The threshold is 80% of maxTokens.

Implementation

bool shouldCompactPreemptively(int currentTokens, int maxTokens);