1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/lib
Stan Lo dde7134e07 Freeze fragment cache related instrument name.
ActionMailer::Base#instrument_name and
ActionController::Base#instrument_name will be frequently called once
caching is enabled. So it's better to freeze them instead of create new
string on every call.

Also, the instrument name in #instrument_fragment_cache will usually
be "write_fragment.action_controller" or
"read_fragment.action_controller". So freezing them might also gain some
performance improvement. We have done something like this in other places:
https://github.com/rails/rails/blob/master/actionview/lib/action_view/template.rb#L348
2017-02-07 00:41:02 +08:00
..
action_mailer Freeze fragment cache related instrument name. 2017-02-07 00:41:02 +08:00
rails/generators/mailer self. is not needed when calling its own instance method 2017-01-05 19:58:52 +09:00
action_mailer.rb Offer the option to use parameterization for shared processing of headers and ivars (#27825) 2017-01-28 11:20:46 +01:00