Re: [Tutor] Increase speed

2007-10-09 Thread Michael Langford
You don't know what's slow. This is the perfect tool for a profiler. http://docs.python.org/lib/profile.html --Michael On 10/9/07, Øyvind <[EMAIL PROTECTED]> wrote: > > Hello. > > I have written a simple application that does a number of simple > calculations. In psudo-code it looks somethi

Re: [Tutor] Increase speed

2007-10-09 Thread Alan Gauld
"Øyvind" <[EMAIL PROTECTED]> wrote > Does anyone have any suggestions of what I should do? Your pseudo code is a bit too pseudo to be useful for performance tuning. > class start: You don;t really need a class here, somple functions will suffice but won't make much difference to speed. >f

Re: [Tutor] Increase speed

2007-10-09 Thread Eric Brunson
Øyvind wrote: > Hello. > > I have written a simple application that does a number of simple > calculations. In psudo-code it looks something like below. > > The program works fine. However, it seems like I need a supercomputer to > finish the resultwithin a reasonable timeframe, as the var.txt cont

Re: [Tutor] Increase speed

2007-10-09 Thread Kent Johnson
Øyvind wrote: > Hello. > > I have written a simple application that does a number of simple > calculations. In psudo-code it looks something like below. I think this is the first time I have ever been asked to optimize code without looking at the code! It's hard to optimize pseudo-code. Can you

[Tutor] Increase speed

2007-10-09 Thread Øyvind
Hello. I have written a simple application that does a number of simple calculations. In psudo-code it looks something like below. The program works fine. However, it seems like I need a supercomputer to finish the resultwithin a reasonable timeframe, as the var.txt contains a lot of variables th