YJIT: Lookup IDs on boot instead of binding to them
Previously, the version-controlled cruby_bindings.inc.rs file
contained the build-time artifact id.h, which nobu mentioned hinders
the goal of having fewer magic numbers in the repository.
Lookup the IDs YJIT needs on boot. It costs cycles, but it's fine since
YJIT only uses a handful of IDs at the moment. No perceptible
degradation to boot time found in my testing.
YJIT: Lookup IDs on boot instead of binding to them
Previously, the version-controlled
cruby_bindings.inc.rs
filecontained the build-time artifact
id.h
, which nobu mentioned hindersthe goal of having fewer magic numbers in the repository.
Lookup the IDs YJIT needs on boot. It costs cycles, but it's fine since
YJIT only uses a handful of IDs at the moment. No perceptible
degradation to boot time found in my testing.