Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



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


Giving new its own instruction makes sense.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: