Skip to content

Optimization for calling java vararg methods on hotspot. ~10x speedup#6572

Merged
headius merged 1 commit intojruby:masterfrom
byteit101:vararg_optimize
Feb 23, 2021
Merged

Optimization for calling java vararg methods on hotspot. ~10x speedup#6572
headius merged 1 commit intojruby:masterfrom
byteit101:vararg_optimize

Conversation

@byteit101
Copy link
Member

Array.set is much slower than raw array access, and leads to a very
laggy ui in certain JRubyFX workloads that involve lots of vararg
calls to java apis. This patch optimizes that case, and leads to a
resulting, user-visible ~10x speedup

This change was pulled out of #6422 work

Array.set is much slower than raw array access, and leads to a very
laggy ui in certain JRubyFX workloads that involve lots of vararg
calls to java apis. This patch optimizes that case, and leads to a
resulting, user-visible ~10x speedup
Copy link
Member

@kares kares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@headius headius added this to the JRuby 9.3.0.0 milestone Feb 23, 2021
@headius headius merged commit 30f903d into jruby:master Feb 23, 2021
@headius
Copy link
Member

headius commented Feb 23, 2021

Very nice!

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

Successfully merging this pull request may close these issues.

3 participants