sleepy_penguin RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* [PATCH] epoll: avoid reduce block capture and ivar requests
@ 2018-12-14 23:08 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2018-12-14 23:08 UTC (permalink / raw)
  To: sleepy-penguin; +Cc: Eric Wong

Bytecode golfing...
---
 lib/sleepy_penguin/epoll.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/sleepy_penguin/epoll.rb b/lib/sleepy_penguin/epoll.rb
index 7d173c8..bd340be 100644
--- a/lib/sleepy_penguin/epoll.rb
+++ b/lib/sleepy_penguin/epoll.rb
@@ -27,8 +27,7 @@ class SleepyPenguin::Epoll
     return if @pid == $$
     return if @io.closed?
     objects = @copies.values
-    @copies.each_key { |epio| epio.close }
-    @copies.clear
+    @copies.each_key(&:close).clear
     __ep_reinit
     objects.each do |obj|
       io_dup = @io.dup

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-14 23:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-14 23:08 [PATCH] epoll: avoid reduce block capture and ivar requests Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/sleepy_penguin.git/

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).