From d32e639902e3df217229017a3374b5b751ede6e3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 5 Jun 2015 09:16:27 +0000 Subject: reduce inline constant cache overheads We can use symbols in the SleepyPenguin APIs to trade speed for space in uncommon code paths. --- lib/yahns/queue_epoll.rb | 2 +- lib/yahns/sigevent_efd.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/yahns/queue_epoll.rb b/lib/yahns/queue_epoll.rb index 2875920..1511917 100644 --- a/lib/yahns/queue_epoll.rb +++ b/lib/yahns/queue_epoll.rb @@ -15,7 +15,7 @@ class Yahns::Queue < SleepyPenguin::Epoll::IO # :nodoc: QEV_WR = Epoll::OUT | Epoll::ONESHOT def self.new - super(SleepyPenguin::Epoll::CLOEXEC) + super(Epoll::CLOEXEC) end # for HTTP and HTTPS servers, we rely on the io writing to us, first diff --git a/lib/yahns/sigevent_efd.rb b/lib/yahns/sigevent_efd.rb index c65e13f..2c04b36 100644 --- a/lib/yahns/sigevent_efd.rb +++ b/lib/yahns/sigevent_efd.rb @@ -4,7 +4,7 @@ class Yahns::Sigevent < SleepyPenguin::EventFD # :nodoc: include Kgio::DefaultWaiters def self.new - super(0, SleepyPenguin::EventFD::CLOEXEC) + super(0, :CLOEXEC) end def sev_signal -- cgit v1.2.3-24-ge0c7