about summary refs log tree commit homepage
path: root/lib/rainbows/stream_file.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-07-06 10:33:01 +0000
committerEric Wong <normalperson@yhbt.net>2010-07-06 10:39:46 +0000
commit9ce364b079efdb3bcef504a84e2460a9b2b4b9ad (patch)
tree54cb5cc97a940687b0a3405a25851c7cee8973ce /lib/rainbows/stream_file.rb
parent9ab356d3969779d7f8f4be6579bfa7570c703f21 (diff)
downloadrainbows-9ce364b079efdb3bcef504a84e2460a9b2b4b9ad.tar.gz
rb_str_slice_bang() allocates a new string internally and calls
rb_str_aref_m() AND rb_str_aset_m(), too.  String#[] just
calls rb_str_aref_m() directly, so it's a much quicker code
path.  Also, "[]" methods dispatch faster under 1.9, too.
Diffstat (limited to 'lib/rainbows/stream_file.rb')
0 files changed, 0 insertions, 0 deletions