Speeding up Ruby Networking on OS X Leopard
Apparently Ruby can be excruciatingly slow to do various network-related operations under OX 10.5 (Leopard). According to Ezra Zygmuntowicz (developer of merb on the ruby-talk mailing list the solution is to add this into your script:
# for OSX compatibility Socket.do_not_reverse_lookup = true