From: Eric Wong Date: 2011-03-26T03:38:17+09:00 Subject: [ruby-core:35556] [Ruby 1.9 - Feature #4528][Open] [PATCH] ext/io/nonblock: avoid unnecessary fcntl F_SETFL calls Issue #4528 has been reported by Eric Wong. ---------------------------------------- Feature #4528: [PATCH] ext/io/nonblock: avoid unnecessary fcntl F_SETFL calls http://redmine.ruby-lang.org/issues/4528 Author: Eric Wong Status: Open Priority: Low Assignee: Category: ext Target version: 1.9.x Avoid F_SETFL if we're not changing the O_NONBLOCK bit. F_SETFL is an expensive operation since it needs to affect all processes with the same file object. rb_io_set_nonblock() implements similar logic to avoid F_SETFL in io.c -- http://redmine.ruby-lang.org