Thanks. I thought it might be something like that when I looked at the code.
Regards, Nick On Fri, Jun 19, 2009 at 12:39 PM, Nathan Weizenbaum <[email protected]>wrote: > Yeah, this means that all the request processing happens within that > method, so it's no surprise that most of your time is spent there. > > In terms of tuning Sass, if you upgrade to the most recent master branch, > there's support for caching compiled Sass files which should speed up > generation significantly after the first run. > > > On Fri, Jun 19, 2009 at 9:09 AM, Chris Eppstein <[email protected]>wrote: > >> >> The sass_old_process method is the rails process method. It should be >> better named to process_without_sass. >> >> Hunt & pecked on my iPhone... Sorry if it's brief! >> >> On Jun 19, 2009, at 8:48 AM, Nicholas Van Weerdenburg <[email protected] >> > wrote: >> >> > I seem to have a lot of time on my page rendering spent in >> > sass_old_process. >> > >> > Here is highlighted section from RPM (below sig). Is this actual >> > SASS functionality, or is a SASS hook and the rendering time is >> > elsewhere and not really SASS related? >> > >> > Any tips for tuning SASS? I use lots of small .sass files and >> > @import statements. >> > >> > Thanks, >> > Nick >> > >> > File: /Library/Ruby/Gems/1.8/gems/haml-2.1.0/lib/sass/plugin/rails.rb >> > >> > unless defined?(Sass::RAILS_LOADED) >> > Sass::RAILS_LOADED = true >> > >> > Sass::Plugin.options.merge!(:template_location => RAILS_ROOT + '/ >> > public/stylesheets/sass', >> > :css_location => RAILS_ROOT + '/ >> > public/stylesheets', >> > :always_check => RAILS_ENV != >> > "production", >> > :full_exception => RAILS_ENV != >> > "production") >> > >> > # :stopdoc: >> > module ActionController >> > class Base >> > alias_method :sass_old_process, :process >> > >> > def process(*args) >> > >> > if !Sass::Plugin.checked_for_updates || >> > Sass::Plugin.options[:always_update] || >> > Sass::Plugin.options[:always_check] >> > Sass::Plugin.update_stylesheets >> > end >> > >> > # this line is highlighted >> > sass_old_process(*args) >> > >> > end >> > end >> > end >> > # :startdoc: >> > end >> > >> > >> > >> > >> > > >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
