This project is archived and is in readonly mode.

Changeset [b36f37bd0421f4af79ea29342ead0fd5919a4383] by Yehuda Katz

August 10th, 2009 @ 11:55 PM

Further experimentation. Was able to cut the cost of rendering 100 partials in a collection in half.

To discuss: What are the desired semantics (if any) for layouts in a collection. There are no tests for it at present, and I'm not sure if it's needed at all.

Deprecated on this branch: object pointing at the current object in partials. You can still use the partial name, or use :as to achieve the same thing. This is obviously up for discussion. http://github.com/rails/rails/co...

Committed by Yehuda Katz

  • A actionpack/examples/views/_hundred_partials.erb
  • M actionpack/examples/minimal.rb
  • M actionpack/lib/action_view/render/partials.rb
  • M actionpack/lib/action_view/test_case.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>