Skip to content

Rails profiling optimizations#7783

Merged
headius merged 2 commits intojruby:masterfrom
headius:rails_optz
May 23, 2023
Merged

Rails profiling optimizations#7783
headius merged 2 commits intojruby:masterfrom
headius:rails_optz

Conversation

@headius
Copy link
Member

@headius headius commented May 4, 2023

A collection of experiments to fix profile hot spots in a simple Rails app.

@headius headius force-pushed the rails_optz branch 4 times, most recently from 69f002d to 487c4b5 Compare May 7, 2023 05:27
headius added 2 commits May 23, 2023 09:49
Since we have split out keyword argument handling, all hashes are
"literal" hashes and we no longer use this flag.
Small hashes are defined as anything five pairs or smaller, for
which we can use a single bucket and save overall by not creating
as big a bucket or rehashing during insertion. The resulting hash
may rehash later when elements are added.

For a three-pair hash this improves a looping hash creation bench
by 33%.
@headius headius marked this pull request as ready for review May 23, 2023 15:56
@headius headius merged commit 3caa46b into jruby:master May 23, 2023
@headius headius deleted the rails_optz branch May 23, 2023 16:53
@enebo enebo added this to the JRuby 9.4.3.0 milestone Jun 7, 2023
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.

2 participants