Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootup time of a simple app #1564

Open
gtom opened this issue May 21, 2018 · 1 comment
Open

bootup time of a simple app #1564

gtom opened this issue May 21, 2018 · 1 comment
Milestone

Comments

@gtom
Copy link

gtom commented May 21, 2018

Hi,
I' started to play around with shoes4 a little bit. It is a nice project, I like your goal to build apps with same sourcecode for windows, mac and linux.
I'm working on a linux-laptop (Ubuntu 16.04), using RVM to install jRuby (Version-Info: jruby 9.1.17.0 (2.3.3) 2018-04-20 d8b1ff9 Java HotSpot(TM) 64-Bit Server VM 25.171-b11 on 1.8.0_171-b11 +jit [linux-x86_64]) and installed shoes via
gem install shoes --pre

My apps are working, but I'm wondering about startup-time: When I start an example app like:
``
Shoes.app width: 300, height: 200 do
background lime..blue
stack do
para "Welcome to the world of Shoes!"
end
end

``
with this command:
shoes example.rb
then it takes around 20 seconds on my laptop until the message appears on screen. Do I miss something in configuration or reading documentation? Any chance to speed up things?
Thanks in advance for any usefull hint
gTom

@jasonrclark
Copy link
Member

Hey @gtom, thanks for checking things out.

A good part of the startup time comes from JRuby and the JVM itself. There's some hints on tweaking that to go faster at https://github.com/jruby/jruby/wiki/Improving-startup-time, but it isn't as fast as we'd like.

#186 has a few of our own notes on things we should look into around startup speed too. I've been working through some eye issues, but once I'm back working on shoes regularly I want to double-check that we're not doing anything to make it worse in Shoes itself during startup. Thanks for the nudge.

@jasonrclark jasonrclark added this to the 4.0.x milestone Jun 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants