ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:104377] [Ruby master Bug#18003] Rework internal IO to directly invoke scheduler with IO object.
@ 2021-06-22 11:01 samuel
  2022-11-15 12:31 ` [ruby-core:110763] " Eregon (Benoit Daloze)
  0 siblings, 1 reply; 2+ messages in thread
From: samuel @ 2021-06-22 11:01 UTC (permalink / raw)
  To: ruby-core

Issue #18003 has been reported by ioquatix (Samuel Williams).

----------------------------------------
Bug #18003: Rework internal IO to directly invoke scheduler with IO object.
https://bugs.ruby-lang.org/issues/18003

* Author: ioquatix (Samuel Williams)
* Status: Closed
* Priority: Normal
* Assignee: ioquatix (Samuel Williams)
----------------------------------------
Many functions are still going through C functions which take file descriptors fd argument, and internally we need to create an IO object to handle this correctly in the fiber scheduler. This is slightly inefficient, so we should rework these code paths to use the updated interfaces which handle IO instances directly.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ruby-core:110763] [Ruby master Bug#18003] Rework internal IO to directly invoke scheduler with IO object.
  2021-06-22 11:01 [ruby-core:104377] [Ruby master Bug#18003] Rework internal IO to directly invoke scheduler with IO object samuel
@ 2022-11-15 12:31 ` Eregon (Benoit Daloze)
  0 siblings, 0 replies; 2+ messages in thread
From: Eregon (Benoit Daloze) @ 2022-11-15 12:31 UTC (permalink / raw)
  To: ruby-core

Issue #18003 has been updated by Eregon (Benoit Daloze).


> `rb_io_wait_readable`, `rb_io_wait_writable` and `rb_wait_for_single_fd` are
  deprecated in favour of `rb_io_maybe_wait_readable`,
  `rb_io_maybe_wait_writable` and `rb_io_maybe_wait` respectively.
  `rb_thread_wait_fd` and `rb_thread_fd_writable` are deprecated.

Why have these functions `maybe` in the name? That seems confusing.

----------------------------------------
Bug #18003: Rework internal IO to directly invoke scheduler with IO object.
https://bugs.ruby-lang.org/issues/18003#change-100107

* Author: ioquatix (Samuel Williams)
* Status: Closed
* Priority: Normal
* Assignee: ioquatix (Samuel Williams)
----------------------------------------
Many functions are still going through C functions which take file descriptors fd argument, and internally we need to create an IO object to handle this correctly in the fiber scheduler. This is slightly inefficient, so we should rework these code paths to use the updated interfaces which handle IO instances directly.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-15 12:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22 11:01 [ruby-core:104377] [Ruby master Bug#18003] Rework internal IO to directly invoke scheduler with IO object samuel
2022-11-15 12:31 ` [ruby-core:110763] " Eregon (Benoit Daloze)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).