Re: About Python execution speed

2010-04-12 Thread Leonardo Giordani
Thank you Chris and Stefan, this was the answer I was looking for. Leonardo Giordani -- http://mail.python.org/mailman/listinfo/python-list

Re: About Python execution speed

2010-04-12 Thread Stefan Behnel
Leonardo Giordani, 12.04.2010 11:51: I'm facing a strange issue in Python execution speed. I'm running the following test script: -8<- dim = 1000 iteration = 10 list1 = [] list2 = [] for i in range(dim): list1.a

Re: About Python execution speed

2010-04-12 Thread Chris Rebert
On Mon, Apr 12, 2010 at 2:51 AM, Leonardo Giordani wrote: > which runs in about 80 seconds on my local hardware (mean of multiple > execution) > If I move the whole code into a function and call this latter the execution > time drops to about 45 seconds. > > What is the reason of this improvement

About Python execution speed

2010-04-12 Thread Leonardo Giordani
Hi all, I'm facing a strange issue in Python execution speed. I'm running the following test script: -8<- dim = 1000 iteration = 10 list1 = [] list2 = [] for i in range(dim): list1.append(float(i)) list2.appen