# Ruby is Running Slow on Mac OS X

**URL:** <https://www.ruby-forum.com/t/ruby-is-running-slow-on-mac-os-x/127401>\
**Category:** Ruby\
**Created:** [January 28, 2008, 10:37pm UTC](https://www.ruby-forum.com/t/ruby-is-running-slow-on-mac-os-x/127401 "2008-01-28T22:37:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![superfly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/48db29/32.png) [@superfly](https://www.ruby-forum.com/u/superfly)\
**Post date:** [January 28, 2008, 10:37pm UTC](https://www.ruby-forum.com/t/ruby-is-running-slow-on-mac-os-x/127401/1 "2008-01-28T22:37:04Z")

</div>

Hello everyone.

I’m just wondering if anyone else is having problems, or did have  
problems with ruby running very slowly on your mac? My mac is new,  
opened 5 days ago. I have it on a loop, and on average it took 10-30  
seconds per each loop - on my windows computer, and on my friends mac.  
Now on my mac it is taking about 1 hour per loop. =/ So I’m not really  
sure what’s going on with it.

Anyone else that has/had problems with this, and if you had this  
problem, what did you do to fix it?

---

<div class="post-metadata">

**Author:** ![superfly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/48db29/32.png) [@superfly](https://www.ruby-forum.com/u/superfly)\
**Post date:** [January 28, 2008, 10:51pm UTC](https://www.ruby-forum.com/t/ruby-is-running-slow-on-mac-os-x/127401/2 "2008-01-28T22:51:52Z")

</div>

On Jan 28, 2008, at 1:36 PM, Tj Superfly wrote:

> ## Anyone else that has/had problems with this, and if you had this problem, what did you do to fix it?

It’s hard to know without more information about what’s in your loop.  
Judging from one of your previous posts, you are trying to do some  
screen scraping. One thing I observed on upgrading to Leopard (see  
earlier post) is that if you are accessing the Internet, you may find  
performance has decreased as compared to earlier versions. Two fixes  
for this that suggest themselves are:

- If you are on wireless, use WPA instead of WEP encryption. Leopard  
doesn’t like WEP very well.
- Since you are probably behind a NAT router, use IPv4 instead of IPv6.
- Use a fast DNS provider – perhaps not your ISP (some people have  
recommended OpenDNS)

---

<div class="post-metadata">

**Author:** ![superfly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/48db29/32.png) [@superfly](https://www.ruby-forum.com/u/superfly)\
**Post date:** [January 28, 2008, 11:24pm UTC](https://www.ruby-forum.com/t/ruby-is-running-slow-on-mac-os-x/127401/3 "2008-01-28T23:24:55Z")

</div>

On Jan 28, 2008, at 2:36 PM, Tj Superfly wrote:

> Anyone else that has/had problems with this, and if you had this  
> problem, what did you do to fix it?

post the code. if it’s on leoTard (leopard) you will need to tweak  
the networking as it’s very slow for dns lookups unless configured  
correctly.

a @ [http://codeforpeople.com/](http://codeforpeople.com/)
