everything related to duct tape audio suite (dtas)
 help / color / mirror / code / Atom feed
* [PATCH] sigevent/efd: minor simplifications
@ 2014-12-29  4:26 Eric Wong
  0 siblings, 0 replies; only message in thread
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	[flat|nested] only message in thread

only message in thread, other threads:[~2014-12-29  4:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-29  4:26 [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).