mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Use symbol.h in vm.c to get macro for faster ID to sym (#12272)
The macro provided by symbol.h uses STATIC_ID2SYM when it can which speeds up methods that declare keyword args. Co-authored-by: Alan Wu <XrXr@users.noreply.github.com> Co-authored-by: Takashi Kokubun (k0kubun) <takashikkbn@gmail.com> Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
This commit is contained in:
parent
eedb30d385
commit
b021f6f8a7
Notes:
git
2024-12-05 22:51:51 +00:00
Merged-By: maximecb <maximecb@ruby-lang.org>
2 changed files with 2 additions and 0 deletions
1
vm.c
1
vm.c
|
@ -33,6 +33,7 @@
|
|||
#include "internal/variable.h"
|
||||
#include "iseq.h"
|
||||
#include "rjit.h"
|
||||
#include "symbol.h" // This includes a macro for a more performant rb_id2sym.
|
||||
#include "yjit.h"
|
||||
#include "ruby/st.h"
|
||||
#include "ruby/vm.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue