[#65451] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...

Issue #10333 has been updated by Koichi Sasada.

9 messages 2014/10/07

[ruby-core:65895] [ruby-trunk - Feature #9345] [PATCH] signal.c: avoid repeated disable/enable interrupt

From: normalperson@...
Date: 2014-10-25 08:42:23 UTC
List: ruby-core #65895
Issue #9345 has been updated by Eric Wong.


 Updated patch against r48129:
 http://80x24.org/spew/m/feature-9345-v2%40dcvr.txt
 
 Will commit in a few days unless there are objections.

----------------------------------------
Feature #9345: [PATCH] signal.c: avoid repeated disable/enable interrupt
https://bugs.ruby-lang.org/issues/9345#change-49636

* Author: Eric Wong
* Status: Open
* Priority: Low
* Assignee: 
* Category: 
* Target version: current: 2.2.0
----------------------------------------
We only install system-level signal handlers during init (before any
threads or user code is running), so there's no need to repeatedly
enable/disable the interrupts at that time.  We also do not change
system-level sig handlers once user-level code is running.

This saves about 20 syscalls at startup and makes the executable
smaller:

text       data     bss     dec     hex filename
before:     2716694   24350  154680 2895724  2c2f6c ruby
after:      2716150   24350  154680 2895180  2c2d4c ruby


$ git pull git://bogomips.org/ruby.git sig-intr-init

The following changes since commit 834ea58a9b2eb698c760681c14a599a8941377ac:

  * 2014-01-03 (2014-01-02 15:10:19 +0000)

are available in the git repository at:

  git://bogomips.org/ruby.git sig-intr-init

for you to fetch changes up to 9cc5aeb1a6a1cde504e899a5e3d59a0b4398c8cc:

  signal.c: avoid repeated disable/enable interrupt (2014-01-02 22:22:58 +0000)

----------------------------------------------------------------
Eric Wong (1):
      signal.c: avoid repeated disable/enable interrupt

 signal.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)


---Files--------------------------------
0001-signal.c-avoid-repeatedly-disable-enable-interrupt-a.patch (2.16 KB)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next