MacPorts Ruby performance gotcha
If you install Ruby from MacPorts (all the cool kids do), be aware that the first 1.8.7 port had some issues that basically broke performance, making it run three times slower than normal. Verify that you have the 1.8.7-p72_2
version active, and not 1.8.7-p72_1
:
> sudo port installed |grep ruby
ruby @1.8.7-p72_1+thread_hooks
ruby @1.8.7-p72_2+thread_hooks (active)
The defect on MacPorts Trac has more details, along with links to a relevant ruby-talk thread.
Its worth pointing out that this issue went from discovery to being fixed and released into the port stream in about a days time. MacPorts has really come a long way from just a year or two ago. Fairly major packages used to lag behind the latest stable releases by multiple versions, but now I find everything I care about stays up to date with ease from MacPorts. They are even able to keep up with git releases, an impressive task considering how fast and furious releases git releases come.
Kudos to the MacPorts team for doing a fine job and making developers' lives easier.