ruby-kafka icon indicating copy to clipboard operation
ruby-kafka copied to clipboard

Prefer `IO#wait_readable` and `IO#wait_writable` where possible.

Open samuel-williams-shopify opened this issue 7 months ago • 1 comments

There are several instances of IO.select with a single file descriptor. It is better to use IO#wait_readable or IO#wait_writable` because it is more efficient internally.

https://github.com/zendesk/ruby-kafka/blob/62a0cf9c44b0c05a4f98c4ec073ae5f04f4194e0/lib/kafka/socket_with_timeout.rb#L40

samuel-williams-shopify avatar Mar 26 '25 08:03 samuel-williams-shopify