General

Profile

byroot (Jean Boussier)

Issues

open closed Total
Assigned issues 1 34 35
Reported issues 24 159 183

Projects

Project Roles Registered on
Ruby Committer 09/27/2021

Activity

Today

12:31 PM Ruby Revision 3fa4869c (git): Get rid of USE_ISEQ_NODE_ID flag
It doesn't serve much purpose and compiling Ruby with that flag
disabled would break some tests.
byroot (Jean Boussier)
11:08 AM Ruby Revision 83557d59 (git): Get rid of `VM_INSN_INFO_TABLE_IMPL`
The succinct bitvector implementation has been the active one since
Ruby 2.6, and the other two ones aren't even working properly anymore.
I'm planning to better pack `struct iseq_insn_info`, so removing
this extra complexity will simpl...
byroot (Jean Boussier)
07:26 AM Ruby Revision f6be39f3 (git): vm_core.h: Normalize `param.post_start` and `param.rest_start`
Both can trivially be derived from a single addition of two other
numbers located in the same struct, so really cheap to compute.
Eliminating these two fields saves 8B per ISeq.
`block_start` could also be derived from other counters, ...
byroot (Jean Boussier)

11/29/2026

06:32 PM Ruby Revision 962e77fa (git): compile.c: Move `mandatory_only_iseq` into `rb_iseq_variable`
Almost no ISeq has that pointer set, it's only used by a handful of
builtin ISeqs defined in core. Hence moving it into the variable
struct saves 8B for almost all ISeqs.
byroot (Jean Boussier)
04:34 PM Ruby Revision 955bf008 (git): vm_core.h: better pack `rb_iseq_constant_body`
By just moving some fields into existing padding and shrinking some,
the struct can be 16B smaller.
Whether that saves any memory in practice is allocator dependent though.
byroot (Jean Boussier)
03:18 PM Ruby Revision 64720605 (git): iseq.c: rb_iseq_memsize only count mark_bits if they're allocated
When it fits in a single word, they're already accounted for as part
of `sizeof(struct rb_iseq_constant_body)`.
byroot (Jean Boussier)
03:18 PM Ruby Revision 5d5fc928 (git): iseq.c: rb_iseq_memsize Only count `opt_table` if present.
It was unconditionally counting it, but only iseqs with `flags.has_opt`
actually have one.
byroot (Jean Boussier)
02:11 PM Ruby Revision d613da50 (git): compile.c: Deduplicate ICs
Within a single ISeq, two `opt_getconstant_path` instruction with
identical `const_path` can use the same IC slot because they're
guaranteed to resolve the constant with the same `cref`.
For ISeqs referencing the same constant multiple ...
byroot (Jean Boussier)
10:33 AM Ruby Revision 965170ac (git): Directly compile constant references into `rb_const_path_t`
This saves us from building an intermediate array of symbols.
Similarly, `ibf_load` and `ibf_dump` serialize constant references
into a list of IDs with a small value header to encode the lenght
and whether it's absolute. This reduce th...
byroot (Jean Boussier)
08:04 AM Ruby Revision 641fbb05 (git): [ruby/json] Properly raise `JSON::GeneratorError` for duplicate keys
Fix: https://github.com/ruby/json/issues/1152
https://github.com/ruby/json/commit/cfc062bc61
byroot (Jean Boussier)

Also available in: Atom