As we can see, the use of the magic comment reduced the program's execution time by over 40%. This is because Ruby no longer needs to check if the string is a frozen literal every time it is created.
https://aristotelescoutinho.com.br/entendendo-o-congelamento-de-strings-no-ruby/
@aristotelesbr Thanks for the reminder on this. I thought this was changed a while back to be the default behavior.
@timtilberg. Yes, but it looks like Matz has backtracked on the decision.