Latency vs. Throughput: The Core GC Threshold Trade-off

Adjusting `gc.set_threshold` directly controls the fundamental trade-off between garbage collection run frequency and individual collection duration; lower thresholds yield more frequent, shorter pauses (beneficial for latency), while higher thresholds result in less frequent but potentially longer runs (beneficial for throughput).

Sources

Open the full topic