Skip to content

Cache package after acquisition#6635

Merged
headius merged 1 commit intojruby:masterfrom
headius:faster_packages
Mar 26, 2021
Merged

Cache package after acquisition#6635
headius merged 1 commit intojruby:masterfrom
headius:faster_packages

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.

2 participants