Too slow

Hi,
I founded a rails application on ruby 1.8.6 and rails 2.0.2, the
database
was mysql. When I installed some gems, the speed of loading application
page
become very slow except the index.rhtml. Did the installation of some
gems
affect or changed some configuration of my application?Thanks in
advance.

If there is some problem, please let me know.

On Thu, Mar 6, 2008 at 10:49 AM, coolgeng coolgeng
[email protected]

Hi,

At Thu, 6 Mar 2008 11:49:37 +0900,
coolgeng coolgeng wrote in [ruby-talk:293662]:

I founded a rails application on ruby 1.8.6 and rails 2.0.2, the database
was mysql. When I installed some gems, the speed of loading application page
become very slow except the index.rhtml. Did the installation of some gems
affect or changed some configuration of my application?Thanks in advance.

Rubygems loads all of installed gemspec files at startup.

Can I uninstall the Rubygems?

On Thu, Mar 6, 2008 at 11:04 AM, Nobuyoshi N. [email protected]

I uninstall the gems. The commander is “gem uninstall name”

On Thu, 2008-03-06 at 13:08 +0900, coolgeng coolgeng wrote:

Can I uninstall the Rubygems?

Not to offend, but just some basic things about asking questions on
USENET, programming language mailing lists and forums.

  1. Do not top post. There have been religious wars about this, but most
    of experienced guys don’t like this.

  2. Use google before asking. For example, you installed couple of gems
    and your app got slow. See, if anyone had similar problem in past.

  3. Use proper subject for your question. “Too Slow” is not enough.

  4. Provide information about which operating system you are in. Which
    version of softwares you are using and stuff like that.

Getting back to your question, are you running unpatched version of Ruby
1.8.6? It has serious bugs.

Windows?

Try gem cleanup to remove unneeded gems.

Also, try updating rubygems (gem update --system).

If on windows, try fsutil behavior set disablelastaccess 1. This helps
a little on some systems (depends on HD controller).

The first load of a ‘page’ (or more specifically, a controller) will
always be slower than subsequent loads, as it late loads (and reloads)
the files off of disk.