Sorry guys this is way over my head. I do know the GFA Basic was run in Windows.
Being so new to ActivePython I thought that the numerical extension would be ideal for this sort of thing. All your responses have been much appreciated. I do like Python and will be sticking with it. Looking forward to playing with your code Mathew and trying to understand what is happening at each step. Thanks again, Regards Ed Hopkins On 11 May 2002 at 15:58, Matthew Sherborne wrote: > I tried it with numpy and it was faster without it. I think most of the time > consumed is in getting the memory from the operating system. > > I tried it in Delphi but kept on getting memory probs. Couldn't get it to > finish. > > Perhaps the best way to approach it with a new generator or simply a method > where you pass the index and it returns the contents of the virtual table. > > Attached is a small set of tests that go about the problem in different > ways, but I couldn't get anywhere near the GBA time. I think that GBA gets > around it by forward checking that the certain members of the array aren't > read so, it doesn't allocate memory for them? Is the GBA app running on > windows? > > It must be to do with memory allocation. Any other ideas? > > Matthew Sherborne > > ----- Original Message ----- > From: "Bob Kline" <[EMAIL PROTECTED]> > To: "Ed Hopkins" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Saturday, May 11, 2002 5:50 AM > Subject: Re: Conversion from GFA Basic to Python for SpeedTest > > > > On Tue, 9 Apr 2002, Bob Kline wrote: > > > > > On Tue, 9 Apr 2002, Ed Hopkins wrote: > > > > > > > > > > > The result of this code: > > > > > > > > starting time : 10:06:30 > > > > finished time: 10:06:41 > > > > i = 8145060 > > > > 8145060 40 41 42 43 44 45 > > > > > > > > Within 11 seconds all 8145060 combinations of 6 of 45 have been > > > > written into a table together with a line identification number at > > > > position R(i,7) , at a 800 MHz computer with 195 MB memory. > > > > > > I'll be curious to see what someone more familiar with NumPy (I assume > > > David A. reads this list) comes up with for Python, but this is the sort > > > of work I'd be more include to do using Fortran or C++. In C++, on my > > > 450MHz machine, with no compiler optimization options turned on: > > > > > > starting time: Tue Apr 09 05:10:08 2002 > > > finished time: Tue Apr 09 05:10:10 2002 > > > i = 8145060 > > > 8145060 40 41 42 43 44 45 > > > > Or even better, in Fortran: > > > > Fri May 10 13:34:57 2002 > > Fri May 10 13:34:57 2002 > > 8145060 40 41 42 43 44 45 > > > > I'd still like to know how the NumPy experts would approach this > > problem. David Ascher: did you ever get a chance to look at this > > poster's original question? Seems like just the sort of thing a > > numerical extension package for a progamming language would be at home > > with. > > > > -- > > Bob Kline > > mailto:[EMAIL PROTECTED] > > http://www.rksystems.com > > > > _______________________________________________ > > ActivePython mailing list > > [EMAIL PROTECTED] > > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > > Other options: > http://listserv.ActiveState.com/mailman/listinfo/ActivePython > > > > > > > _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython