Topic: Output_safety very slow

Hi everybody,

I just experience some problem with rails 2.3.5 module ActiveSupport::CoreExtension::Sting::output_safety.rb

I have two server, one with rails 2.3.2 without output_safety module and one with 2.3.5.  Rendering is a way faster with rails 2.3.2 than wiht 2.3.5.
After profiling very simple rendering, I discover that rails 2.3.5 was calling the method concat_with_safety (from file output_safety) while rails 2.3.2 was just calling ruby String::concat methods. This was the bottleneck of the application on rails 2.3.5.

Did anybody has a similar problem before ? I am missing something ? Is there a way to speed up output_safety ?

Regards.

Antoine

Last edited by Antoine Joulie (2010-04-29 07:01:37)