What is the best way to speed up rake's load time of the Rails environment?
-
#=> rake environment 7.67s user 0.63s system 95% cpu 8.704 total. it's annoying that it takes a lot time when you want to run a task. eg. `rails g controller x`, `rake db:migrate`
-
Answer:
I got mine down from 20s to 9s by putting require => false on libraries in the Gemfile that didn't need to be loaded, and by optimizing my routes (was able to reduce it by 20 routes (a little under half of what is was).
Kieran Pilkington at Quora Visit the source
Other answers
You can use the irake gem. http://stackoverflow.com/a/11335173/1151624
Kalló Bernát
Related Q & A:
- What is the best way to distribute an audio/video feed from a computer to TVs over existing indoor coax cable?Best solution by Audio-Video Production
- What is the best way to clean LEGO bricks?Best solution by bricks.stackexchange.com
- What is the best way to make UI for an Isometric game in Java?Best solution by Game Development
- What is the best way to calculate a date difference?Best solution by Stack Overflow
- What is the Best way to request for part time as a current full time employee?Best solution by everydaylife.globalpost.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.