Skip to content

Instantly share code, notes, and snippets.

@byroot
Created September 14, 2022 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save byroot/646317c92c6188b9eeef5a0db26e2262 to your computer and use it in GitHub Desktop.
Save byroot/646317c92c6188b9eeef5a0db26e2262 to your computer and use it in GitHub Desktop.
RubyVM::InstructionSequence.compile_option = { peephole_optimization: false }
class RubyVM::InstructionSequence
def self.load_iseq(path)
RubyVM::InstructionSequence.compile_file(path)
end
end
# Can be enabled with RUBYOPT="-r /path/to/disable_opt.rb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment