Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache package after acquisition #6635

Merged
merged 1 commit into from Mar 26, 2021
Merged

Conversation

headius
Copy link
Member

@headius headius commented Mar 26, 2021

Improves performance of these accesses by 10x:

Before:

$ rvm jruby-9.2.16.0 do jruby -e "loop { t = Time.now; i = 0; while i < 10_000_000; i+=1; java; java; java; java; java; end; puts Time.now - t }"
4.378078
4.057417

After:

$ jruby -e "loop { t = Time.now; i = 0; while i < 10_000_000; i+=1; java; java; java; java; java; end; puts Time.now - t }"
0.49563
0.451077
0.558907

Improves performance of these accesses by 10x:

Before:

$ rvm jruby-9.2.16.0 do jruby -e "loop { t = Time.now; i = 0; while i < 10_000_000; i+=1; java; java; java; java; java; end; puts Time.now - t }"
4.378078
4.057417

After:

$ jruby -e "loop { t = Time.now; i = 0; while i < 10_000_000; i+=1; java; java; java; java; java; end; puts Time.now - t }"
0.49563
0.451077
0.558907
@headius headius added this to the JRuby 9.2.17.0 milestone Mar 26, 2021
@headius headius requested a review from kares March 26, 2021 19:37
@headius headius merged commit 1796633 into jruby:master Mar 26, 2021
@headius headius deleted the faster_packages branch March 26, 2021 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants