ender672/nokogiri — comment on commit bd62219eed78a29126b5d346bba670cd42b57cd4
File: ext/nokogiri/xml_sax_parser.c line 14
By tenderlove:

Why do you prefer rb_gc_mark? Doing that means your internal structs become more complex, and it also means you have to add more code to your mark function. We may be slightly faster doing the pointer math, but `rb_iv_get` boils down to a hash lookup anyway, so why bother? I guess I don't particularly care, I just don't see the advantage of managing things in the mark function.