From: "byroot (Jean Boussier) via ruby-core" Date: 2026-11-25T08:31:42+00:00 Subject: [ruby-core:127711] [Ruby Feature#22630] GC improvements Issue #22630 has been updated by byroot (Jean Boussier). No opinion on either patch, but: > to reduce GC time/cost. It seems to be one of the biggest things we hit in our app. I assume you're not using `GC.config(rgengc_allow_full_mark: false)` ? Any reason why? ---------------------------------------- Feature #22630: GC improvements https://bugs.ruby-lang.org/issues/22630#change-120236 * 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/