From: James Edward Gray II Date: 2004-08-28T04:16:59+09:00 Subject: Re: performance comparison On Aug 27, 2004, at 1:55 PM, George Ogata wrote: > Boris Glawe writes: > >> What's the reason for this big performance difference ? > > I don't know what your C code looks like, but when you consider what > must go in a typical C statement vs. an equivalent ruby statement, I > don't find it too surprising. How do other interpreted languages > (e.g., python) go? I can't speak for Python, but I have a lot of experience with coding chess searches in Perl. Unfortunately, I've never been able to achieve reasonable performance there either. I've had some luck using a simple string as my data structure and avoiding higher level manipulations. I've also tried unrolling recursion, again with some success. If memory serves, my personal best is somewhere around 40x slower than C. Of course, my C skills aren't anything to brag about so that may be giving Perl an advantage... James