Re: Faster JRuby execution
Posted by asotobu on Apr 22, 2013; 7:19pm
URL: https://discuss.asciidoctor.org/Faster-JRuby-execution-tp130p155.html
Wow!!! with only setting next properties programmatically:
RubyInstanceConfig config = new RubyInstanceConfig();
config.setCompatVersion(CompatVersion.RUBY1_9);
config.setCompileMode(CompileMode.OFF);
Ruby rubyRuntime = JavaEmbedUtils.initialize(Collections.EMPTY_LIST, config);
Startup has improved from 5.5 seconds to 4.3 and rendering from 0.30 to 0.17. Cool improvement, I will continue researching on how to improve speed, and after that I will write a blog post about it.
OMG I have two articles about asciidoctor-java-integration pending to be written, really happy :D