This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Elapsed time: 2800.09093603 (sec) | |
----------------------------------------------------------- | |
benchmark results: | |
minimum results in each 3 measurements. | |
Execution time (sec) | |
name ruby 2.2.0dev (2014-02-20 trunk 45059) [x86_64-linux] built-ruby | |
app_answer 0.056 0.055 | |
app_aobench 82.763 83.279 | |
app_erb 1.585 1.561 | |
app_factorial 1.007 1.065 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dynamic symbol: 44948 | |
pin symbol: 23265 | |
---------- 4288 ---------- | |
-- rb_pin_dynamic_symbol(start) -- | |
/home/nari/.rbenv/versions/symgc/lib/libruby.so.2.2(+0x1df2f8) vm_dump.c:685 | |
/home/nari/.rbenv/versions/symgc/lib/libruby.so.2.2(+0xfefc5) parse.y:10438 | |
/home/nari/.rbenv/versions/symgc/lib/libruby.so.2.2(+0xff05a) parse.y:10455 | |
/home/nari/.rbenv/versions/symgc/lib/libruby.so.2.2(rb_intern3+0x9d) parse.y:10469 | |
/home/nari/.rbenv/versions/symgc/lib/libruby.so.2.2(+0xf946e) parse.y:8207 | |
/home/nari/.rbenv/versions/symgc/lib/libruby.so.2.2(+0xf9536) parse.y:8233 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gc.c b/gc.c | |
index 49b54e8..0981e33 100644 | |
--- a/gc.c | |
+++ b/gc.c | |
@@ -3005,7 +3017,6 @@ gc_after_sweep(rb_objspace_t *objspace) | |
/* if heap_pages has unused pages, then assign them to increment */ | |
if (heap_pages_increment < heap_tomb->page_length) { | |
heap_pages_increment = heap_tomb->page_length; | |
- heap_pages_expand_sorted(objspace); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; for spork | |
;; http://github.com/timcharper/spork | |
;; requirement gems: spork, spork-testunit | |
(defvar rinari-spork-executable "spork1.8" | |
"spork bin") | |
(defvar rinari-spork-test-executable "testdrb1.8" | |
"spork test bin") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; egg-grep.el へ grep-edit.elを組み込む | |
;; grep-edit.elの設定 | |
(add-hook 'egg-grep-setup-hook | |
(lambda () | |
(define-key egg-grep-mode-map "\M-r" 'grep-narrow-down) | |
(define-key egg-grep-mode-map " " | |
'self-insert-command) | |
(define-key egg-grep-mode-map [backspace] | |
'backward-delete-char-untabify) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun buffer-file-name-copy () | |
"現在開いているバッファのファイル名をkill-ringにコピーする。" | |
(interactive) | |
(let | |
((cusor (point)) | |
(file-name (if (buffer-file-name) | |
(buffer-file-name) ""))) | |
(progn | |
(insert file-name) | |
(kill-region cusor (point))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://redmine.ruby-lang.org/issues/show/3398 | |
# http://redmine.ruby-lang.org/issues/show/1934 | |
a = "" | |
1000000.times do |i| | |
i % 100 ? ObjectSpace.define_finalizer(a.dup, proc {}) : a.dup | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/cmain.cpp b/ext/cmain.cpp | |
index c9c2fdd..cd7f747 100644 | |
--- a/ext/cmain.cpp | |
+++ b/ext/cmain.cpp | |
@@ -464,12 +464,12 @@ extern "C" void evma_accept_ssl_peer (const unsigned long binding) | |
evma_get_peername | |
*****************/ | |
-extern "C" int evma_get_peername (const unsigned long binding, struct sockaddr *sa) | |
+extern "C" int evma_get_peername (const unsigned long binding, struct sockaddr *sa, socklen_t *len) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/plugins/defaults/switch.rb b/lib/plugins/defaults/switch.rb | |
index 266ab60..83141cb 100644 | |
--- a/lib/plugins/defaults/switch.rb | |
+++ b/lib/plugins/defaults/switch.rb | |
@@ -10,18 +10,30 @@ module Termtter::Client | |
passwords[config.user_name] = config.password | |
- if user_name | |
- config.user_name = normalize_as_user_name(arg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
h = "# -*- coding: utf-8 -*-\n@a='あ'" | |
p h.encoding | |
p h = h.encode("sjis") | |
p h.encoding | |
eval(h) | |
p @a |
OlderNewer