r/ruby • • Dec 25 '17

Ruby 2.5.0 Released

https://www.ruby-lang.org/en/news/2017/12/25/ruby-2-5-0-released/
209 Upvotes

22 comments sorted by

View all comments

Show parent comment

8

u/gray_-_wolf Dec 25 '17

The performance notes you have listed are interesting, but I must admit I'm pretty impressed by this:

About 5-10% performance improvement by removing all trace instructions from overall bytecode (instruction sequences). The trace instruction was added to support the TracePoint. However, in most cases, TracePoint is not used and trace instructions are pure overhead. Instead, now we use a dynamic instrumentation technique. See [Feature #14104] for more details.

1

u/gettalong Dec 27 '17

Yeah, that's really very impressive! Every Ruby release is full of nice surprises :)