autopush: optimize away ivar usage under MRI
commit8a1fc65c88dee174940735bb46074c72ac47ce61
authorEric Wong <normalperson@yhbt.net>
Tue, 1 Feb 2011 01:05:48 +0000 (31 17:05 -0800)
committerEric Wong <normalperson@yhbt.net>
Tue, 1 Feb 2011 01:19:32 +0000 (31 17:19 -0800)
treec9f3daabd6431fecbb302a9815c4e8d3e5006b09
parent6479b6d3934b8930910e0057f516aa019dd7a8c7
autopush: optimize away ivar usage under MRI

We know that all versions of MRI have a small RFile structure
that is allocated in the same object slots as other Ruby types
and also zeroed on allocation.

This optimization enables us to fall back to using ivars in
case MRI changes or if we're used on other Rubies.
ext/kgio/autopush.c
ext/kgio/extconf.rb