Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pikachu_is_cool
on Sept 21, 2016
|
parent
|
context
|
favorite
| on:
Homebrew 1.0.0
Except for loading the Ruby VM. Takes way too long.
mikemcquaid
on Sept 21, 2016
[–]
Which is why for certain things like `brew --prefix` we now do it purely in Bash rather than using Ruby ;)
barpet
on Sept 21, 2016
|
parent
|
next
[–]
Why would bash be faster ? Would not you essentially call the same C lib stuff anyway ?
s_kilk
on Sept 21, 2016
|
root
|
parent
|
next
[–]
It would at least save the process-start overhead, plus loading the ruby vm and modules/gems.
mikemcquaid
on Sept 21, 2016
|
root
|
parent
|
next
[–]
Exactly. For a simple string comparison Bash is far faster (although Homebrew doesn't use require any gems, just FYI).
s_kilk
on Sept 21, 2016
|
root
|
parent
|
next
[–]
Good to know, so did the speedup come mostly from not spinning-up the Ruby VM?
mikemcquaid
on Sept 21, 2016
|
root
|
parent
|
next
[–]
Yep!
pikachu_is_cool
on Sept 21, 2016
|
parent
|
prev
[–]
I guess it's a start. But even still, the most basic of commands take a good 1+ seconds on my machine. What about Ruby makes it necessary to use? What is stopping you guys from moving to something like LuaJIT?
mikemcquaid
on Sept 22, 2016
|
root
|
parent
[–]
Rewriting the entire project in non-Ruby would require a lot of time and create a lot of bugs for little benefit for most users.
pikachu_is_cool
on Sept 23, 2016
|
root
|
parent
[–]
Unfortunate.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: