[fxruby-users] Slow loading with Ruby 1.9.3 and FXRuby 1.6.23

6 views
Skip to first unread message

Doug Allen

unread,
Mar 16, 2012, 9:10:18 PM3/16/12
to fxruby...@rubyforge.org
We have been using Ruby 1.8.6 and FXRuby 1.6.16 under Windows, from the old
one step installer.

The following code takes less than a second to load and execute on my
five-year old Windows XP PC.

puts 'Starting'
require 'fox16'
puts 'Done'

With Ruby 1.9.3 and FXRuby 1.6.23, it takes 12 or more seconds. Both tests
are with all files on my local hard drive.

I understand that Ruby 1.9.x on Windows has performance problems with
'require', but I am wondering if anyone knows a workaround, and whether this
is caused by Ruby 1.9 or is related to the different compiler for FXRuby. I
have tried other Ruby 1.9.x binaries that attempt to help with 'require' but
see no performance difference for FXRuby 1.6.23.

I should add that after loading, the application itself performs just fine
with Ruby 1.9.3 and FXRuby 1.6.23.

--
View this message in context: http://ruby.11.n6.nabble.com/Slow-loading-with-Ruby-1-9-3-and-FXRuby-1-6-23-tp4626884p4626884.html
Sent from the FXRuby Users mailing list archive at Nabble.com.
_______________________________________________
fxruby-users mailing list
fxruby...@rubyforge.org
http://rubyforge.org/mailman/listinfo/fxruby-users

Lars Kanis

unread,
Jun 15, 2012, 12:01:53 PM6/15/12
to fxruby...@rubyforge.org
Hi Allen!

Am 17.03.2012 02:10, schrieb Doug Allen:
> With Ruby 1.9.3 and FXRuby 1.6.23, it takes 12 or more seconds. Both tests
> are with all files on my local hard drive.

This issue was also reported by IgorJorobus
<https://github.com/IgorJorobus>in [1] so I finally looked at it. It
turned out to be an issue of the mingw-w64 toolchain, that was used for
cross compiling the windows binary gem. You may try the latest
prerelease - it should perform much better.

[1] https://github.com/lylejohnson/fxruby/issues/5

--
Regards,
Lars Kanis
Reply all
Reply to author
Forward
0 new messages