From: Eric Wong Date: 2014-12-25T00:00:54+00:00 Subject: [ruby-core:67114] Re: [ruby-trunk - misc #10628] Peformance of URI module naruse@airemix.jp wrote: > Anyway I'm ok for Eric's patch. > Could you commit it? r48980 > We should consider ext/uri or strict/loose API for Ruby 2.3. We should be able to improve compile.c to do more optimizations. I prefer to avoid any new C-exts. Things like [Feature #10423] (reduce string literal allocations). Also, this patch gave me a new ideas: we should be able to merge/share nearby call_info structs on the same object. For example: m["a"], m["b"], m["c"] May all use the same call_info object, I think: {:mid=>:[], :flag=>256, :blockptr=>nil, :orig_argc=>1}, This can improve IC hit rates and reduce memory.