Project

General

Profile

Actions

Bug #13111

closed

Degraded performance for delegated methods through Forwardable module

Added by gonzedge (Edgar Gonzalez) over 7 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:79002]

Description

After upgrading to Ruby 2.4.0 on my local machine while developing some changes on this gem: https://github.com/gonzedge/rambling-trie, there was a noticeable performance degradation with any delegated methods through Forwardable. I have a few benchmarks in place and, without changing any other code, had a ~25% increase in the time it took to execute.

If you look at the benchmarks on https://github.com/gonzedge/rambling-trie/blob/master/reports/0.9.2/benchmark and https://github.com/gonzedge/rambling-trie/blob/master/reports/0.9.3/benchmark, you'll notice that the first benchmark (for Rambling::Trie.create) goes from 8.97 seconds to 11.19 seconds. These benchmarks are generated by running rake performance:benchmark:all.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0