How to optimize Ruby internal.

Ruby 3