Issue #9201 has been updated by funny_falcon (Yura Sokolov).


Look at #8158 . Don't know if it still applies, but I will fix it if you interested in.

----------------------------------------
Bug #9201: [patch] remove GC overhead for loaded_features_index
https://bugs.ruby-lang.org/issues/9201#change-43405

Author: tmm1 (Aman Gupta)
Status: Closed
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: 
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-12-02 trunk 43955)
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


I was profiling minor GC in our app and noticed 15% of time spent in mark_tbl for loaded_features_index.

The following patch removes this overhead by storing feature offsets outside the ruby heap:

  https://github.com/tmm1/ruby/commit/d03c5ece865422f0510957c1dee1d33a1d9eca82


-- 
http://bugs.ruby-lang.org/