3 ms·
I guess that was the key takeaway from your talk: Ignore local optimisations in favour of more global ones. The fact that you parse C extensions was really une
by matthewrudy 10y ago
I guess that was the key takeaway from your talk:
Ignore local optimisations in favour of more global ones.
The fact that you parse C extensions was really unexpected.
Given something like Object#blank? using the Ruby implementation vs Sam Saffron's "fast_blank",
after JRuby+Truffle has done it's work, which implementation ends up more performant?
And would a future JRuby+Truffle (given both the Ruby and C implementation) make an intelligent decision of which one to use?
https://github.com/SamSaffron/fast_blank https://github.com/SamSaffron/fast_blank
- chrisseaton 10y agoTruffle at the moment wouldn't make #blank? fast, because it uses a regex, and at the moment that's still a black box to our optimiser (which is a shame).
- matthewrudy 10y agoI see, so that's the next another future optimisation path, parse regexps in a way that grall can optimise. Exciting!