From: Motohiro KOSAKI Date: 2011-04-29T10:32:01+09:00 Subject: [ruby-core:35943] [Ruby 1.9 - Feature #3905] rb_clear_cache_by_class() called often during GC for non-blocking I/O Issue #3905 has been updated by Motohiro KOSAKI. r29673 caused a regression (see [Bug #4289]). Then, I reverted it by r31378. Alternative fixing way is discussed by [Bug #4289] thread. ---------------------------------------- Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O http://redmine.ruby-lang.org/issues/3905 Author: Eric Wong Status: Closed Priority: Low Assignee: Category: core Target version: 1.9.x This still causes performance problems with frequent EAGAIN compared to 1.9.1 While akr fixed extend to no longer clear cache with empty modules in r28813, the GC phase still scans and clears the cache when the extended object is collected. ref: [ruby-core:32507], [ruby-core:32508] A proposed patch to add memoizing of extended objects with IO::Wait{Read,Writ}able is attached. Comments/feedback appreciated. -- http://redmine.ruby-lang.org