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