diff options
| author | Randy Stauner <randy.stauner@shopify.com> | 2024-12-05 15:51:32 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-05 17:51:32 -0500 |
| commit | b021f6f8a74bee71aa5ce153e7c2095f0f41ed3d (patch) | |
| tree | aab31fd8cfe09d994ae17cd0194dd585ad167682 | |
| parent | eedb30d3855d31e15e6db48faea25af4afb63b6d (diff) | |
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>
Notes
Notes:
Merged-By: maximecb <maximecb@ruby-lang.org>
| -rw-r--r-- | common.mk | 1 | ||||
| -rw-r--r-- | vm.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -20049,6 +20049,7 @@ vm.$(OBJEXT): {$(VPATH)}rubyparser.h vm.$(OBJEXT): {$(VPATH)}shape.h vm.$(OBJEXT): {$(VPATH)}st.h vm.$(OBJEXT): {$(VPATH)}subst.h +vm.$(OBJEXT): {$(VPATH)}symbol.h vm.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h vm.$(OBJEXT): {$(VPATH)}thread_native.h vm.$(OBJEXT): {$(VPATH)}variable.h @@ -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" |
