General

Profile

byroot (Jean Boussier)

Issues

open closed Total
Assigned issues 1 34 35
Reported issues 27 159 186

Projects

Project Roles Registered on
Ruby Committer 09/27/2021

Activity

Today

08:25 PM Ruby Revision 16601921 (git): compile.c: use the same pathobj for all iseq of a file
When `fname` and `realpath` are indentical it doesn't matter,
but when they differ we pack them in a single reference by building
an array.
Until now, we built that array for every individual ISeq instead of
only once at the start of co...
byroot (Jean Boussier)
06:42 PM Ruby Revision 485a816b (git): Fix and test large column numbers
[Misc #20488]
Like line numbers, columns are `int`, so they may not fit in a Fixnum
on 32-bit platforms.
byroot (Jean Boussier)
05:26 PM Ruby Feature #22625 (Closed): iseq memory improvements
I've made a number of improvements in the ISeq struct format that should very significantly reduce their size in 4.1.
Some were inspired by these PR, some conflicting. I still have a few more ideas to explore, but most of it has made ...
byroot (Jean Boussier)
04:24 PM Ruby Revision 831584d2 (git): Pass the instruction position to oneshot line coverage
byroot (Jean Boussier)
01:43 PM Ruby Feature #22665: Implement Encoding#ascii_transparent?
I opened a documentation PR at https://github.com/ruby/ruby/pull/20443, feedback welcome, I don't pretend to be good at writing documentation.
A subsidiary question is: instead of introducing another method, would it make sense to cha...
byroot (Jean Boussier)
11:41 AM Ruby Revision 845bca0a (git): prism_compile.c: Right size class and module labels
`rb_snprinf` end up creating strings from a larger size pool than
necessary, which isn't ideal for iseq labels as they stay around for
the entirety of the process lifefime.
Using handrolled concatenation and interning, we can save a lit...
byroot (Jean Boussier)
11:11 AM Ruby Revision 5d05da11 (git): compile.c: shrink `outer_variables`
A corpus analysis of ~1M iseqs show that out of all iseq with an
`outer_variables` table, 63% of them have a single entry, and 97%
have 4 or less entries.
Since an `id_table` of capacity 8 is ~256B, that's ~160B wasted
every time.
On t...
byroot (Jean Boussier)
10:26 AM Ruby Revision fc91e3a7 (git): Dump IBF local table as varint
It's a list of "object offsets" in the object tables, for most
iseqs that's a relatively small integer that generally only take
one of two bytes.
Instead they were dumped as full size words.
This reduce the size of `to_binary` by 5% in...
byroot (Jean Boussier)
09:53 AM Ruby Revision b3869b3c (git): Dump IBF object offsets as varint deltas
The object list was an aligned array of 32-bit offsets, 4 bytes per
object. Objects are dumped in list order, so the offsets
only grow and each delta is roughly one object's size, which fits in a
one or two byte varint.
However this req...
byroot (Jean Boussier)
09:04 AM Ruby Revision e39d5984 (git): Store instruction lines and events in the instruction slots
The previous commit ensured that the high 32 bits of each opcode is free.
With that space, we can use 16 bits for storing the `iseq_events` and
16 more bits to store the `lineno`.
Since an instruction `lineno` can be as large as 32 bits...
byroot (Jean Boussier)

Also available in: Atom