Re: cpython compilation parameter

2009-10-14 Thread Jorgen Grahn
On Thu, 2009-10-08, Diez B. Roggisch wrote: > cEd wrote: > >> Hello, >> >> I'm wondering how to compile python to get good performance. >> Because when I compare this ugly code which find prime number: ... >> between : >> - the python distributed with my ubuntu >> #time python prime_number.py

Re: cpython compilation parameter

2009-10-08 Thread Diez B. Roggisch
cEd wrote: > Hello, > > I'm wondering how to compile python to get good performance. > Because when I compare this ugly code which find prime number: > > # prime_number.py > start=3 > for is_first in range(start): > found = 0 > is_first+=1 > for i in range (2, is_first): > if not (is_fi

cpython compilation parameter

2009-10-08 Thread cEd
Hello, I'm wondering how to compile python to get good performance. Because when I compare this ugly code which find prime number: # prime_number.py start=3 for is_first in range(start): found = 0 is_first+=1 for i in range (2, is_first): if not (is_first%(i)): found = 1 break if