1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/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
..
abstract_controller Freeze fragment cache related instrument name. 2017-02-07 00:41:02 +08:00
action_controller Freeze fragment cache related instrument name. 2017-02-07 00:41:02 +08:00
action_dispatch Correct spelling 2017-02-05 19:00:18 -06:00
action_pack applies new string literal convention in actionpack/lib 2016-08-06 18:51:43 +02:00
abstract_controller.rb applies new string literal convention in actionpack/lib 2016-08-06 18:51:43 +02:00
action_controller.rb Include the content of the flash in the auto-generated etag (#26250) 2016-08-22 13:34:35 -07:00
action_dispatch.rb Bump license years for 2017 2016-12-31 08:34:08 -05:00
action_pack.rb Bump license years for 2017 2016-12-31 08:34:08 -05:00