> I think the combination of those two effects will reduce your time from > 45 seconds to 4 seconds or so. Best of luck, Fred Milgrom Hi Thomi, Hmmm! You may also want to try out the Psyco specializing compiler, and see if it does anything to that inner loop: http://psyco.sourceforge.net/ I see some heavy math in your loop that might be amendable to Psyco's optimizations. Best of wishes to you!