mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Optimize rb_namespace_available
Rather than to lazily check the env using a trinary value, we can more straightforwardly check for the env during the VM boot. This allow `rb_namespace_available` to just be a pointer dereference.
This commit is contained in:
parent
ce38cba528
commit
393e9a5f3e
4 changed files with 22 additions and 21 deletions
1
eval.c
1
eval.c
|
@ -78,6 +78,7 @@ ruby_setup(void)
|
|||
#endif
|
||||
Init_BareVM();
|
||||
rb_vm_encoded_insn_data_table_init();
|
||||
Init_enable_namespace();
|
||||
Init_vm_objects();
|
||||
Init_fstring_table();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue