Actions
Feature #4528
closed[PATCH] ext/io/nonblock: avoid unnecessary fcntl F_SETFL calls
Description
=begin
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
=end
Files
Actions
Like0
Like0Like0