Two methods, tryCompile and runScript, in org.jruby.Ruby should be public to enable compileable option for embedding --------------------------------------------------------------------------------------------------------------------
Key: JRUBY-3898 URL: http://jira.codehaus.org/browse/JRUBY-3898 Project: JRuby Issue Type: Wish Components: Embedding Reporter: Yoko Harada Fix For: JRuby 1.4 Attachments: publicizing_compilation.patch In order to make CompileMode.JIT and CompileMode.FORCE options to work from JRuby Embed API and JSR223, two methods, tryCompile and runScript, in org.jruby.Ruby should be public. Both Embed API and JSR223 have a feature of "parse once and eval many times." This should be equivalent to "compile once run many times" when the CompileMode option is specified. This model is expected to improve performance well. Actually, compilation of current JRuby takes much time, so eliminating compilation from the second and later evaluation would possibly result in shorter evaluation time. To make this happen, tryCompile and runScript should be public methods. See, http://www.nabble.com/precompile-mode-for-embedding-tc23917374.html -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email