Add fast varint size function for btree file.