From: Tanaka Akira Date: 2010-07-31T22:40:54+09:00 Subject: [ruby-core:31562] Re: non-blocking I/O constantly clearing cache in 1.9.2 2010/7/31 Eric Wong : > > The addition of IO::WaitReadable and IO::WaitWritable modules being > extended into Errno::EAGAIN / Errno::EINPROGRESS exceptions means the > method cache gets cleared every time those exceptions are raised. From > my experience with non-blocking I/O, EAGAIN is a very common "error" and > can be raised many times a second. Thus the method cache gets cleared > constantly. I see. Some idea: * create and cache a subclass of Errno::EAGAIN which includes IO::WaitReadable. * don't clear the method cache because IO::WaitReadable has no method. -- Tanaka Akira