From: "fuzzyrichie-gusto (Richard Desmarais) via ruby-core" Date: 2026-11-22T13:16:30+00:00 Subject: [ruby-core:127671] [Ruby Feature#22624] Fixing lazy-loading of iseqs and making it a runtime option Issue #22624 has been reported by fuzzyrichie-gusto (Richard Desmarais). ---------------------------------------- Feature #22624: Fixing lazy-loading of iseqs and making it a runtime option https://bugs.ruby-lang.org/issues/22624 * Author: fuzzyrichie-gusto (Richard Desmarais) * Status: Open ---------------------------------------- https://github.com/ruby/ruby/pull/20072 is the PR Lazy-loading of iseqs was broken using the compile-time USE_LAZY_LOAD switch. The proposal is to compile the code with USE_LAZY_LOAD=1 and set it as a runtime option via RubyVM::InstructionSequence.load_from_binary(bin, lazy: true). lazy is set to false by default but a user can set it to true if they only want the parent iseq loaded; child iseqs will load at first access. This drops the memory usage on boot by about 50% and runtime goes from 5-9s of boot to 0.5-0.9s of boot. -- 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/