3 ms·
I thought (hazy memory here) that git was implemented as a bunch of perl wrappers on some C code. Wouldn't it be better to call into that C code, rather than i
by defen 18y ago
I thought (hazy memory here) that git was implemented as a bunch of perl wrappers on some C code. Wouldn't it be better to call into that C code, rather than implementing git in Ruby?
- llimllib 18y agoWell, it's sh and perl wrappers around C code, but the important point is that those wrappers don't FFI into the C code, they shell out to it. So, yes, a hypothetical reimplentation of git in ruby as a C FFI interface would probably be faster than ruby reading the .git files itself; however exactly as demostrated in the blog entry shelling out to perl/sh code shelling out to C is much slower than the ruby program reading the .git files itself.