Skip to content
Browse files

Improve the output of `RubyVM::InstructionSequence#to_binary` (#2450)

The output of RubyVM::InstructionSequence#to_binary is extremely large.
We have reduced the output of #to_binary by more than 70%.

The execution speed of RubyVM::InstructionSequence.load_from_binary is about 7% slower, but when reading a binary from a file, it may be faster than the master.

Since Bootsnap gem uses #to_binary, this proposal reduces the compilation cache size of Rails projects to about 1/4.

See details: [Feature #16163]
  • Loading branch information...
NagayamaRyoga authored and ko1 committed Sep 19, 2019
1 parent f84efe4 commit 20baa08d652b844806fab424a2a590408ab613ef
Showing with 978 additions and 619 deletions.
  1. +978 −619 compile.c

0 comments on commit 20baa08

Please sign in to comment.
You can’t perform that action at this time.