Slow ruby start up on XP

On my 1.8 GHz W2K system it takes < 1 sec to show Fox window
when first program is not running and ~3 secs when it is
running.

Yura.

···

-----Original Message-----
From: Steve Tuckner [mailto:STUCKNER@MULTITECH.COM]
Sent: Friday, July 25, 2003 16:10

On my Windows XP machine, if I run some command intensive operation
using the command prompt, (like a compile - or a ruby program – see
below), then if I try to start another ruby program from
another command
prompt, it will take forever to start (or a long long time). On my
system a 400Mhz system, It takes a 30 seconds for the first print (of
the second program) to come out and > 5 minutes to get past
the require
of fox. Normally it takes about 4 seconds for the app to come up.

I am planning to use Ruby as a GUI application for a hardware
device we
are going to sell and I am worried that the application might
not start
up if someone is doing intensive work (or as in the case below not
really that intensive). Any one have any ideas on what I
could do about
this problem? Also can any one try it on their Window’s machine to see
how it runs or if you get similar results?

What version of ruby are you running? I am running 1.68 (PragProg’s
version). Also any other commentators with slower machines?

···

-----Original Message-----
From: Yura Kloubakov [mailto:yura@opmr.com]
Sent: Friday, July 25, 2003 3:28 PM
To: ruby-talk@ruby-lang.org
Subject: Re: Slow ruby start up on XP

-----Original Message-----
From: Steve Tuckner [mailto:STUCKNER@MULTITECH.COM]
Sent: Friday, July 25, 2003 16:10

On my Windows XP machine, if I run some command intensive operation
using the command prompt, (like a compile - or a ruby program – see
below), then if I try to start another ruby program from
another command
prompt, it will take forever to start (or a long long time). On my
system a 400Mhz system, It takes a 30 seconds for the first
print (of
the second program) to come out and > 5 minutes to get past
the require
of fox. Normally it takes about 4 seconds for the app to come up.

I am planning to use Ruby as a GUI application for a hardware
device we
are going to sell and I am worried that the application might
not start
up if someone is doing intensive work (or as in the case below not
really that intensive). Any one have any ideas on what I
could do about
this problem? Also can any one try it on their Window’s
machine to see
how it runs or if you get similar results?

On my 1.8 GHz W2K system it takes < 1 sec to show Fox window
when first program is not running and ~3 secs when it is
running.

Yura.

IIRC, he’s running a recent 1.8.

I tried this on a 200MHz Win98 with
( ruby 1.7.3 (2002-11-17) [i386-mswin32] )

Result: 8.5s (alone), 14-17s (counting).

On the same system with
( ruby 1.6.7 (2002-03-01) [i586-mswin32] )

Result: 16.5s (alone), … left in background (counting).

After some time, I wondered if there was some other
problem, so I stopped the counter and the GUI window
soon appeared along with …

after require fox
time = 1973.03
before runGUI
time = 1973.03
before FXApp.new
time = 1973.2
after FXApp.new
time = 1973.36

(That’s about 32 mins)

daz

···

“Steve Tuckner” STUCKNER@MULTITECH.COM wrote:

What version of ruby are you running? I am running 1.68 (PragProg’s
version). Also any other commentators with slower machines?

-----Original Message-----
From: Yura Kloubakov [mailto:yura@opmr.com]

[…]

On my 1.8 GHz W2K system it takes < 1 sec to show Fox window
when first program is not running and ~3 secs when it is
running.

Thanks for the test. I was afraid to update to 1.8 (for no good reason –
reinstalling packages, etc…) but now I am running smooth and fast :slight_smile:

Thanks Matz and company for a dramatic speed up of requires or something. My
speed up when the CPU is busy is similar to below.

Thanks again,

Steve Tuckner

···

-----Original Message-----
From: daz [mailto:dooby@d10.karoo.co.uk]
Sent: Tuesday, July 29, 2003 9:05 PM
To: ruby-talk@ruby-lang.org
Subject: Re: Slow ruby start up on XP

“Steve Tuckner” STUCKNER@MULTITECH.COM wrote:

What version of ruby are you running? I am running 1.68 (PragProg’s
version). Also any other commentators with slower machines?

-----Original Message-----
From: Yura Kloubakov [mailto:yura@opmr.com]

[…]

On my 1.8 GHz W2K system it takes < 1 sec to show Fox window
when first program is not running and ~3 secs when it is
running.

IIRC, he’s running a recent 1.8.

I tried this on a 200MHz Win98 with
( ruby 1.7.3 (2002-11-17) [i386-mswin32] )

Result: 8.5s (alone), 14-17s (counting).

On the same system with
( ruby 1.6.7 (2002-03-01) [i586-mswin32] )

Result: 16.5s (alone), … left in background (counting).

After some time, I wondered if there was some other
problem, so I stopped the counter and the GUI window
soon appeared along with …

after require fox
time = 1973.03
before runGUI
time = 1973.03
before FXApp.new
time = 1973.2
after FXApp.new
time = 1973.36

(That’s about 32 mins)

daz