3 ms·
Why would bash be faster ? Would not you essentially call the same C lib stuff anyway ?
by barpet 10y ago
Why would bash be faster ? Would not you essentially call the same C lib stuff anyway ?
- s_kilk 10y agoIt would at least save the process-start overhead, plus loading the ruby vm and modules/gems.
- mikemcquaid 10y agoExactly. For a simple string comparison Bash is far faster (although Homebrew doesn't use require any gems, just FYI).
- s_kilk 10y agoGood to know, so did the speedup come mostly from not spinning-up the Ruby VM?
- mikemcquaid 10y agoYep!