diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2024-05-14 17:03:46 -0700 |
|---|---|---|
| committer | Jeremy Evans <code@jeremyevans.net> | 2024-05-21 05:33:57 +0900 |
| commit | 86cf074fa1dcf73846e094775414d661e47dfc76 (patch) | |
| tree | 3211bf56a224daae8d4dd567c8529a4affdbd306 /test/ruby/test_method_cache.rb | |
| parent | 2433b57b6a3a6f8e65f61c27d707e1c7f5407986 (diff) | |
Avoid array allocation for empty ruby2_keywords flagged keyword hash
If the method being called does not have a positional splat
parameter, there is no point in allocating the array, as
decrementing given_argc is sufficient to ensure the empty keyword
hash is not considered an argument, assuming that we are calling
a method/lambda and not a regular proc.
Diffstat (limited to 'test/ruby/test_method_cache.rb')
0 files changed, 0 insertions, 0 deletions
