This project is archived and is in readonly mode.

Changeset [f3b072189a6a77717f99e38403392a68f5818a49] by Yehuda Katz

December 25th, 2009 @ 05:50 AM

Instead of marking raw text in templates as safe, and then putting them through String#<< which checks if the String is safe, use safe_concat, which uses the original (internal) String#<< and leaves the safe flag as is. Results in a significant performance improvement.
http://github.com/rails/rails/commit/f3b072189a6a77717f99e38403392a...

Committed by Yehuda Katz

  • M actionpack/lib/action_view/template/handlers/erb.rb
  • M activesupport/lib/active_support/core_ext/string/output_safety.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>