about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-12-28 11:06:23 +0000
committerEric Wong <e@80x24.org>2014-12-28 16:07:51 +0000
commit23b87be611b0f927fc361db22f018ce9dd3aeb29 (patch)
tree1d6af85256191f28177afcc8364cb3b67c7b33fa
parentbbe63ddd50947195f6ef45d46dd87af4ba4de526 (diff)
downloaddtas-23b87be611b0f927fc361db22f018ce9dd3aeb29.tar.gz
This reduces memory overhead by a few bytes by eliminating
constant lookups and unnecessary inclusions.
-rw-r--r--lib/dtas/sigevent/efd.rb4
1 files changed, 1 insertions, 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