Rendered ratings/_rate (258.6ms)
Rendered resources/_single_resource (268.7ms)
Rendered resources/_resource (276.7ms)
Rendered resources/_property_hyperlinks (1.6ms)
Rendered resources/_note_tag_list (0.8ms)
Rendered taggings/_tags_section (1.4ms)
listing those has highlighted the fact that some of them are very slow,
must go and see if i can optimise them...
--
Posted via http://www.ruby-forum.com/.
This will add comments to your erb templates:
unless RAILS_ENV == 'production'
module ActionView
module TemplateHandlers
class ERB < TemplateHandler
include Compilable
cattr_accessor :erb_trim_mode
self.erb_trim_mode = '-'
def compile(template)
src = ::ERB.new("<% __in_erb_template=true %>\n<!-- BEGIN #{
template } -->\n#{ template.source}\n<!-- END #{ template } -->\n",
nil, erb_trim_mode, '@output_buffer').src
RUBY_VERSION >= '1.9' ? src.sub(/\A#coding:.*\n/, '') : src
end
end
end
end
end
Mine lives in my environment.rb.
--
Greg Donald
http://destiney.com/
Ooh, neat! I'll have to play with that -- thanks for sharing it.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org