typomem
Reduce Typo blog memory usage
based on Typo 4.0 and memory reduction…
In config/environment.rb there is a line that is commented out showing how to ignore ActionWebService and ActionMailer. Just copy the line and uncomment it to get rid of ActionWebService. You could drop ActionMailer as well if you do not want email updates:
... Rails::Initializer.run do |config| # Skip frameworks you're not going to use # config.frameworks -= [ :action_web_service, :action_mailer] config.frameworks -= [ :action_web_service] ...
Also in the config.load.paths remove the line for actionwebservice:
config.load_paths += %W(
vendor/rubypants
vendor/redcloth/lib
vendor/bluecloth/lib
vendor/flickr
vendor/syntax/lib
vendor/sparklines/lib
vendor/uuidtools/lib
vendor/jabber4r/lib
vendor/rails/railties
vendor/rails/railties/lib
vendor/rails/actionpack/lib
vendor/rails/activesupport/lib
vendor/rails/activerecord/lib
vendor/rails/actionmailer/lib
vendor/rails/actionwebservice/lib ### REMOVE THIS LINE ###
).map {|dir| "#{RAILS_ROOT}/#{dir}"}.select { |dir| File.directory?(dir) }
...
This is the other chunk with the aggregation classes. Any that you are not using the sidebar for can safely be removed:
$KCODE = 'u' require_dependency 'jcode' require_dependency 'aggregations/audioscrobbler' require_dependency 'aggregations/delicious' require_dependency 'aggregations/tada' ### REMOVE THIS LINE ### require_dependency 'aggregations/flickr' require_dependency 'aggregations/fortythree' ### REMOVE THIS LINE ### require_dependency 'aggregations/magnolia' ### REMOVE THIS LINE ### require_dependency 'aggregations/upcoming'