Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Deprecate safe_level of `ERB.new` in Ruby 2.6 #2179
The interface of
The following address is related Ruby's commit.
This PR uses
This patch is built into Ruby.
2 times, most recently
Mar 14, 2018
Mostly because it looks scary.
And if I'm not mistaken it spawns several useless objects for GC to collect every time
I'd prefer something like this maybe:
if multiple_object_summoning_to_check_features def fast_method new_fun_usage end else def fast_method old_sad_usage end end
Thanks for review. Although it is different from the Ruby upstream, I can change it to approach using
Or I will be able to change it by approach which emphasizes performance which showed as an example (in that case there will be code duplication a bit) .
I think both changes will improve performance better than the current implementation.