[ruby-core:32689] [Ruby 1.9-Feature#3905][Open] rb_clear_cache_by_class() called often during GC for non-blocking I/O

From: Eric Wong <redmine@...>
Date: 2010-10-04 21:56:41 UTC
List: ruby-core #32689
Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
http://redmine.ruby-lang.org/issues/show/3905

Author: Eric Wong
Status: Open, Priority: Low
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

Attachments (1)

In This Thread

Prev Next