Hacker News new | ask | show | jobs
by barpet 3561 days ago
Why would bash be faster ? Would not you essentially call the same C lib stuff anyway ?
1 comments

It would at least save the process-start overhead, plus loading the ruby vm and modules/gems.
Exactly. For a simple string comparison Bash is far faster (although Homebrew doesn't use require any gems, just FYI).
Good to know, so did the speedup come mostly from not spinning-up the Ruby VM?
Yep!