19 May 12:33
Re: [ANN] RailsRestarter v 0.0.1 version "slow monkey"
From: Frederick Cheung <frederick.cheung@...>
Subject: Re: [ANN] RailsRestarter v 0.0.1 version "slow monkey"
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-05-19 10:33:02 GMT
Subject: Re: [ANN] RailsRestarter v 0.0.1 version "slow monkey"
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-05-19 10:33:02 GMT
On 16 May 2008, at 00:50, Roger Pack wrote: > > Don't know if something like this exists already, but thought I'd > advertise my script :) > Have you seen http://svn.techno-weenie.net/projects/plugins/dev_mode_performance_fixes/README ? Not used it myself, but it seems to try and address the same sort of problem that you are. Fred > Introduction > > Rails is slow. Rails in development mode on old computers is WAY slow. > There is hope, however. Just run it in production mode [fast!] and > have > it restart whenever a file change occurs. Slow to restart, perhaps, > but > far faster than reloading all files per request, which is development > mode. This allowed me to develop in rails on my 1 GHz PPC [like 6 > years > old] and still consider it survivable. > > How to get/run: > > code: > http://code.google.com/p/ruby-roger-useful-functions/source/checkout > buried in here is rails/rails_useful.rb, which contains a function > > def fire_up_file_modification_checker_thread reload_dirs = > ['app/controllers', 'app/schools', 'app/models'], death_dirs = > ['app/helpers', 'config', > 'app/controllers/shared_search_code_module.rb'] > > so put that file in your lib dir, include it in your environment.rb, > and, if it's like mine, add something like this to environment.rb > > require 'lib/rails_useful.rb' > require 'socket' > fire_up_file_modification_checker_thread() if Socket.gethostname =~ > /Roger/ # if you're on a dev machine > and watch the goodness go. And then stop. And restart. > > > http://code.google.com/p/ruby-roger-useful-functions/wiki/RailsRestarter > > -R > -- > Posted via http://www.ruby-forum.com/. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@... To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@... For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
RSS Feed