Forum: Ruby Question about EXE file

1474c56f7078a0bfddbf16b129d2f935?d=identicon&s=25 Anton Kiyan (antibreez)
on 2016-11-21 22:18
Hello!

I made EXE file from my ruby script. And it take a really long time to
launch. Can anyone please tell me if there is any way to increase the
launch speed?

Thank you.
14b5582046b4e7b24ab69b7886a35868?d=identicon&s=25 Joel Pearson (virtuoso)
on 2016-11-22 00:42
Try compiling it without compression.
1474c56f7078a0bfddbf16b129d2f935?d=identicon&s=25 Anton Kiyan (antibreez)
on 2016-11-22 09:24
Joel Pearson wrote in post #1185268:
> Try compiling it without compression.
I am new to all this. And I don't understand what you talking about. Can
you please give me some additional information about this?
4828d528e2e46f7c8160c336eb332836?d=identicon&s=25 Robert Heiler (shevegen)
on 2016-11-22 14:31
How did you create an .exe file anyway? And what is a "really long
time"?

What I do know is that my ruby-gnome programs work on windows quite
fine,
at about the same speed as-is on linux (perhaps a tiny bit slower but
that's about it).

It depends a lot on what the program is doing. If it is not doing much
then the start-up should happen quickly.
1474c56f7078a0bfddbf16b129d2f935?d=identicon&s=25 Anton Kiyan (antibreez)
on 2016-11-22 22:27
Robert Heiler wrote in post #1185278:
> How did you create an .exe file anyway? And what is a "really long
> time"?
>
> What I do know is that my ruby-gnome programs work on windows quite
> fine,
> at about the same speed as-is on linux (perhaps a tiny bit slower but
> that's about it).
>
> It depends a lot on what the program is doing. If it is not doing much
> then the start-up should happen quickly.
Please take a look on this: https://www.ruby-forum.com/topic/6879129#new
This is Ruby script that was forced to EXE file via Ocra. It is quite
easy program I think. Ruby script contain Tk library.
Launching time of this EXE file is about 13-14 sec. That seems too much
for me.
14b5582046b4e7b24ab69b7886a35868?d=identicon&s=25 Joel Pearson (virtuoso)
on 2016-11-23 00:38
Tk on Windows is slow. I think it's down to the speed at which Ruby's
I/O file reading works on Windows, and the sheer number of files it has
to load.
1474c56f7078a0bfddbf16b129d2f935?d=identicon&s=25 Anton Kiyan (antibreez)
on 2016-11-24 13:56
Joel Pearson wrote in post #1185286:
> Tk on Windows is slow. I think it's down to the speed at which Ruby's
> I/O file reading works on Windows, and the sheer number of files it has
> to load.
Maybe you can advise something faster than Tk fo Windows?
14b5582046b4e7b24ab69b7886a35868?d=identicon&s=25 Joel Pearson (virtuoso)
on 2016-11-24 15:34
In my experience, a better alternative for Windows GUI programs is C#.
1474c56f7078a0bfddbf16b129d2f935?d=identicon&s=25 Anton Kiyan (antibreez)
on 2016-11-25 13:31
Joel Pearson wrote in post #1185299:
> In my experience, a better alternative for Windows GUI programs is C#.

Ok. Thank you
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.