Actions
Feature #22624
openFixing lazy-loading of iseqs and making it a runtime option
Feature #22624:
Fixing lazy-loading of iseqs and making it a runtime option
Status:
Open
Assignee:
-
Target version:
-
Description
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.
No data to display
Actions