Speeding up Ruby Networking on OS X Leopard

   By chris on January 13th 2008 in /dev/random | 473 views

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

Trackback URI | Comments RSS

Leave a Reply