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
Yehuda Katz e58b2769cf Experimental: Improve performance of ActionView by preventing method cache flushing due to runtime Kernel#extend:
* The helper module adds a new _helper_serial property onto AbstractController subclasses
  * When #helper is used to add helpers to a class, the serial number is updated
  * An ActionView subclass is created and cached based on this serial number.
    * That subclass includes the helper module from the controller
    * Subsequent requests using the same controller with the same serial will result in
      reusing that subclass, rather than being forced to take an action (like include
      or extend) that will result in a global method cache flush on MRI and a flush 
      of the entire AV class' cache on JRuby.
  * For now, this optimization is not applied to the RJS helpers, which results in
    a global method cache flush in MRI and a flush of the JavaScriptGenerator class in
    JRuby only when using RJS.
    * Since the effects are limited to using RJS, and would only affect JavaScriptGenerator
      in JRuby (as opposed to the entire view object), it seems worthwhile to apply this
      now.
  * This resulted in a significant performance improvement. I will have benchmarks
    in the next day or two that show the performance impact of the last several
    commits.
  * There is a small chance this could break existing code (although I'm not sure how).
    If that happens, please report it immediately.
2009-08-09 04:12:09 -03:00
..
abstract_controller Experimental: Improve performance of ActionView by preventing method cache flushing due to runtime Kernel#extend: 2009-08-09 04:12:09 -03:00
action_controller Use response_body rather than performed? 2009-08-09 04:12:09 -03:00
action_dispatch Add :redirect to the testable RJS statements [#2612 state:resolved] 2009-08-09 02:00:15 +01:00
action_pack Bump up the version to 3.0.pre 2009-06-30 14:37:12 -07:00
action_view Experimental: Improve performance of ActionView by preventing method cache flushing due to runtime Kernel#extend: 2009-08-09 04:12:09 -03:00
abstract_controller.rb Renamed presenter to renderer, added some documentation and defined its API. 2009-08-07 17:17:51 +02:00
action_controller.rb Renamed ActionController::Renderer to ActionController::Responder and ActionController::MimeResponds::Responder to ActionController::MimeResponds::Collector. 2009-08-08 17:48:07 +02:00
action_dispatch.rb RequestForgeryProtection now works with the new base 2009-05-21 21:48:42 +02:00
action_pack.rb Bump up the year in MIT license files 2009-01-18 05:28:21 +00:00
action_view.rb Separate ActionView::Context so something else can easily be made into an AV context 2009-07-19 22:31:44 +09:00
actionpack.rb Allow frameworks to be required by their gem name (closes #8845) [drnic] 2007-09-22 18:15:05 +00:00