From: "fuzzyrichie-gusto (Richard Desmarais) via ruby-core" Date: 2026-11-25T15:07:15+00:00 Subject: [ruby-core:127720] [Ruby Feature#22630] GC improvements Issue #22630 has been updated by fuzzyrichie-gusto (Richard Desmarais). We're just about to test it out, which we know will help. We tried a GC.disable approach originally and got hosed on that, so this was the recommendation afterwards. ---------------------------------------- Feature #22630: GC improvements https://bugs.ruby-lang.org/issues/22630#change-120258 * Author: fuzzyrichie-gusto (Richard Desmarais) * Status: Open ---------------------------------------- I was playing around with options to reduce GC time/cost. It seems to be one of the biggest things we hit in our app. In doing so, Claude was able to find 4 changes that could dramatically reduce GC time on a warmed up host (it pointed to an 80x win, which I'm dubious about). I'll link them below as I open the PRs. https://github.com/ruby/ruby/pull/20097 - improvements to gc_mark, with 4 changes that help with the fixed per-call costs https://github.com/ruby/ruby/pull/20098 - prefetch the gc_update_weak_references for 32 references ahead https://github.com/ruby/ruby/pull/20099 - prefetching children during full marks https://github.com/ruby/ruby/pull/20100 - opt-in RUBY_GC_PERMANENT_GENERATION setting, making full_mark GCs much faster -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/