3 ms·
Interesting. Do you think html generation is one of the things that makes the numbers look so good for 3.2 YJIT? We run a mostly json api only app. I think json
by apstats 3y ago
Interesting. Do you think html generation is one of the things that makes the numbers look so good for 3.2 YJIT? We run a mostly json api only app. I think json serialization is notoriously slow in ruby so I was hoping yjit would speed it up.
- byroot 3y agoYJIT won't help JSON generation because it's all implemented in C (either the stdlib `json`, or `oj` or `yajl` etc. If what is slow is some RUby code like Active Model Serializers etc, then maybe it can help a bit there. But yes, generally YJIT works very well on HTML templates because they are compiled as large methods with not a lot of branches.