Doug Allen
2012-Mar-17 01:10 UTC
[fxruby-users] Slow loading with Ruby 1.9.3 and FXRuby 1.6.23
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.
Lars Kanis
2012-Jun-15 16:01 UTC
[fxruby-users] Slow loading with Ruby 1.9.3 and FXRuby 1.6.23
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