My apologies, I should have specified.

What's happened is that the reloading is extremely slow.  If you turn
cache_classes off, simply hitting refresh on a page will take 30+ seconds,
whereas with cache_classes, the performance is reasonable.

The result is that the team has turned cache_classes off in the dev
environment, so any changes require stopping/starting the server, and then
waiting 30+ seconds for it to come back up.  This slowness affects the
generate functionality, cucumber tests, rspec tests, so on and so forth.
It's also killing productivity in a *severe* way, the debug/test feedback
loop is atrocious imo.

The explanation I've been given is that the project has roughly 20k LoC, and
the loading is just too slow.

I'm still fairly new to the Rails ecosystem, so I'm currently trying to
gather information, and I plan on eventually trying to profile the startup
times to see if I can lessen this issue.  Any advice, especially on the
profiling, would be greatly appreciated.

The project itself is running Rails 3 on Ruby 1.8.7 (we use RVM), and I've
been told they "got the number of gems down to 130", so I'm sure that's an
issue as well.

I'll run rake stats when I'm able to as well, I'll let you know what it
reports.


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Alpha Blue
Sent: Saturday, July 23, 2011 6:30 PM
To: [email protected]
Subject: [Rails] Re: What is considered a large Ruby Project?

That's large.  On a full NFL and NCAA statistics based site with over 30 
controllers, 60 models, and full test code, each of my sites has approx. 
12k to 13k lines of code.

LoC is not the reason for slowness.  If the code is optimized, DRY, and 
programmed correctly, it won't matter how many LoC you have in your 
project.

Development mode usually has several things that slow things down, 
namely lack of caching.  Also, if your databases are not properly 
normalized or overly normalized, and not indexed properly, you could 
create a lot of slowness.

What is slow about your project?  What OS are you using?  Are you 
running virtual?  Do you have enough resources to support your 
environments?  What server env. are you running?

-- 
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to