[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Too slow

coolgeng coolgeng

3/6/2008 2:50:00 AM

[Note: parts of this message were removed to make it a legal post.]

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.


--
Best Regards
Cooper Geng

6 Answers

coolgeng coolgeng

3/6/2008 2:52:00 AM

0

[Note: parts of this message were removed to make it a legal post.]

If there is some problem, please let me know.

On Thu, Mar 6, 2008 at 10:49 AM, coolgeng coolgeng <coolgeng410@gmail.com>
wrote:

> 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.
>
>
> --
> Best Regards
> Cooper Geng




--
Best Regards
Cooper Geng

Nobuyoshi Nakada

3/6/2008 3:04:00 AM

0

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.

--
Nobu Nakada

coolgeng coolgeng

3/6/2008 4:08:00 AM

0

[Note: parts of this message were removed to make it a legal post.]

Can I uninstall the Rubygems?

On Thu, Mar 6, 2008 at 11:04 AM, Nobuyoshi Nakada <nobu@ruby-lang.org>
wrote:

> 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.
>
> --
> Nobu Nakada
>
>


--
Best Regards
Cooper Geng

James Tucker

3/6/2008 12:55:00 PM

0

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.


On 6 Mar 2008, at 02:49, coolgeng coolgeng wrote:

> 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.
>
>
> --
> Best Regards
> Cooper Geng


coolgeng coolgeng

3/7/2008 2:18:00 AM

0

[Note: parts of this message were removed to make it a legal post.]

I uninstall the gems. The commander is "gem uninstall name"

On Thu, Mar 6, 2008 at 8:55 PM, James Tucker <jftucker@gmail.com> wrote:

> 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.
>
>
> On 6 Mar 2008, at 02:49, coolgeng coolgeng wrote:
>
> > 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.
> >
> >
> > --
> > Best Regards
> > Cooper Geng
>
>
>


--
Best Regards
Cooper Geng

hemant

3/7/2008 6:55:00 AM

0


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.