Do Out-of-Band Garbage Collection

Despite all our optimization efforts, GC will continue to take a substantial part of execution time. So what do we do if we can’t reduce GC time? We force GC when our application isn’t doing anything. That approach is called Out-of-Band Garbage Collection (OOBGC).

Idle time is something that we usually ...

Get Ruby Performance Optimization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.