Remix.run Logo
hinkley a day ago

> I’ve been interested in speeding up allocations for quite some time. We know that calling a C function from Ruby incurs some overhead, and that the overhead depends on the type of parameters we pass.

> it seemed quite natural to use the triple-dot forwarding syntax (...).

> Unfortunately I found that using ... was quite expensive

> This lead me to implement an optimization for ... .

That’s some excellent yak shaving. And speaking up … in any language is good news even if allocation is not faster.

tenderlove 17 hours ago | parent [-]

Thank you! Wish it had panned out for Class#new, but I don't feel bad about doing it. :)

hinkley 11 hours ago | parent [-]

Giving new its own instruction makes sense.