* [PATCH] sigevent/efd: minor simplifications
@ 2014-12-29 4:26 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2014-12-29 4:26 UTC (permalink / raw)
To: dtas-all
This reduces memory overhead by a few bytes by eliminating
constant lookups and unnecessary inclusions.
---
lib/dtas/sigevent/efd.rb | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/lib/dtas/sigevent/efd.rb b/lib/dtas/sigevent/efd.rb
index 5d8d800..373d655 100644
--- a/lib/dtas/sigevent/efd.rb
+++ b/lib/dtas/sigevent/efd.rb
@@ -1,10 +1,8 @@
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
class DTAS::Sigevent < SleepyPenguin::EventFD # :nodoc:
- include SleepyPenguin
-
def self.new
- super(0, EventFD::CLOEXEC)
+ super(0, :CLOEXEC)
end
def signal
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2014-12-29 4:26 7% [PATCH] sigevent/efd: minor simplifications Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/dtas.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).