[#111472] [Ruby master Bug#19274] Error installing ruby 3.2.0 on RH 8 — "aalllop (Alberto Allegue) via ruby-core" <ruby-core@...>
Issue #19274 has been reported by aalllop (Alberto Allegue).
5 messages
2022/12/28
[#111508] Data support for versions before 3.2.0 — Eustáquio Rangel via ruby-core <ruby-core@...>
I was wondering that every piece of code (gems, etc) that use the new Data =
3 messages
2022/12/29
[ruby-core:111523] [Ruby master Bug#19287] Let DelegateClass respect the original method's arity in case of 0
From:
"matsuda (Akira Matsuda) via ruby-core" <ruby-core@...>
Date:
2022-12-30 03:15:03 UTC
List:
ruby-core #111523
Issue #19287 has been reported by matsuda (Akira Matsuda).
----------------------------------------
Bug #19287: Let DelegateClass respect the original method's arity in case o=
f 0
https://bugs.ruby-lang.org/issues/19287
* Author: matsuda (Akira Matsuda)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.3.0dev (2022-12-28T16:43:05Z master cada537040) +YJIT [ar=
m64-darwin21]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
As reported in #19165, method delegation with *, **, and ... adds some over=
head for a method that takes no argument. And current implementation of del=
egations in forwardable and delegate basically define all methods to take s=
plat parameters.
But, with regard to DelegateClass, we can investigate the arity of the targ=
et methods in the initializer, then we can define the delegation method not=
to take the splat for zero arity methods.
A benchmark on trunk today results in 37% runtime performance improvement o=
n a such method.
Benchmark:
Warming up --------------------------------------
old 551.697k i/100ms
new 721.906k i/100ms
Calculating -------------------------------------
old 6.511M (=B1 0.8%) i/s - 33.102M in 5.084530s
new 8.925M (=B1 1.0%) i/s - 44.758M in 5.015619s
Comparison:
new: 8924652.2 i/s
old: 6510691.1 i/s - 1.37x (=B1 0.00) slower
Patch: https://github.com/ruby/ruby/pull/7045
--=20
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- [email protected]
To unsubscribe send an email to [email protected]
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-c=
ore.ml.ruby-lang.org/