linux_inet_diag: improve compatibility with newer GCs
commit07efdceff18dc481424adb8b509244b6c6a822d5
authorEric Wong <normalperson@yhbt.net>
Sun, 16 Jun 2013 20:54:55 +0000 (16 20:54 +0000)
committerEric Wong <normalperson@yhbt.net>
Sat, 31 Aug 2013 06:01:46 +0000 (31 06:01 +0000)
tree8c8113bd53be48d8fcc5806594c058614d0f9721
parentfc690079c889ed5a97359515d75fe9260dd9ea91
linux_inet_diag: improve compatibility with newer GCs

RARRAY_PTR is expensive with GCs in Ruby 2.1.0dev and Rubinius, so
use rb_ary_entry for non-performance critical paths.  Eventually,
RARRAY_AREF/RARRAY_ASET may be common, but for now, using
rb_ary_entry should require the least cognitive overhead for a
developer.
ext/raindrops/linux_inet_diag.c