Re: Ruby is Running Slow on Mac OS X



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

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?
--

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)

.



Relevant Pages

  • RE: Compare two text streams
    ... outer loop to reopen it each time the loop executes. ... files with mac addresses. ... Set objFSO = CreateObject ... Set objTextStream1 = objFSO.OpenTextFile ...
    (microsoft.public.scripting.vbscript)
  • Odd ksh problem
    ... but it is blowing up on my Mac. ... and fourth fields and pass the last 200 lines on to a while loop. ... Originally it was an awk script ... ksh ought to work if I ...
    (comp.sys.mac.programmer.misc)
  • Re: Simple Macro Works on PC But Not Mac--Help!
    ... I see no reason why your loop shouldn't work either. ... Not being a Mac person, I can't test this idea out. ... let me state that I have absolutely no reasoning behind this suggestion other than it can't hurt to try it.What happens if you run your loop backwards? ... For RowCnt = EndRow To BeginRow Step - 1 ...
    (microsoft.public.excel.misc)
  • Re: Optimized ether_crc32_be()
    ... :> MAC addresses it's about five times faster than the double loop. ...
    (freebsd-current)
  • looping one slide
    ... Mac OS X 10.5 (Leopard) ... How do I loop just one slide? ...
    (microsoft.public.mac.office.powerpoint)

Loading