How to optimize Ruby internal.

Ruby 2.5