From: normalperson@... Date: 2014-12-25T00:08:20+00:00 Subject: [ruby-core:67115] [ruby-trunk - misc #10628] Peformance of URI module Issue #10628 has been updated by Eric Wong. 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. ---------------------------------------- misc #10628: Peformance of URI module https://bugs.ruby-lang.org/issues/10628#change-50620 * Author: Guo Xiang Tan * Status: Open * Priority: Normal * Assignee: Yui NARUSE * Category: * Target version: ---------------------------------------- Please view attached screenshot or go to [the following link](https://railsbench.herokuapp.com/tgxworld/ruby?utf8=%E2%9C%93&result_types%5B%5D=app_uri&commit=Submit) to see benchmark graph over time. It got slower after this [commit](https://github.com/ruby/ruby/commit/bb83f32dc3e0424d25fa4e55d8ff32b061320e41). Hope this helps. ---Files-------------------------------- Screenshot from 2014-12-21 22_41_39.png (63.5 KB) -- https://bugs.ruby-lang.org/