Experimental reimplementation in C of rbenv's slow parts