[#107430] [Ruby master Feature#18566] Merge `io-wait` gem into core IO — "byroot (Jean Boussier)" <noreply@...>
Issue #18566 has been reported by byroot (Jean Boussier).
22 messages
2022/02/02
[ruby-core:107493] Re: [Ruby master Feature#18566] Merge `io-wait` gem into core IO
From:
Eric Wong <normalperson@...>
Date:
2022-02-07 00:44:27 UTC
List:
ruby-core #107493
> I agree this would make a lot of sense, also for `io-nonblock` which is also just a couple IO methods. > ---------------------------------------- > Feature #18566: Merge `io-wait` gem into core IO > https://bugs.ruby-lang.org/issues/18566#change-96340 Agree, please remove tiny .so since they're frequently needed. Ulrich Drepper (former glibc maintainer) states: Every DSO used increases resource usage. As the DSO How-To points out, loading a DSO isn't free. There is usually measurably more memory used. The calls into the DSO are more expensive than normal function calls. And a lot more. Link: https://udrepper.livejournal.com/8790.html I would honestly love if more ext (mainly socket, but also fcntl, etc) were in core, too. However, I do suggest keeping empty placeholder .rb files indefinitely to avoid breakage when distros update ruby. Some users have scripts in ~/bin running unmodified going back over 20 years. Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>