Re: threading a 10 lines out of a file

2009-01-05 Thread alex goretoy
> > Se we need to know a bit more about your 4.5-hour program before we can > determine whether threads can help. There is light at the end of the > tunnel, however, since even if threads don't work it's possible that the > multiprocessing module will (assuming you have multi-processor hardware > a

Re: threading a 10 lines out of a file

2009-01-05 Thread Steve Holden
alex goretoy wrote: > Steve, > > Are you referring to the endless GIL debate? I googled about what you > said. I'll look into it here shortly. I just know one thing, is that I > need a comparison for regular code and something about how GIL and > threading fit in the picture. It makes it easier fo

Re: threading a 10 lines out of a file

2009-01-05 Thread alex goretoy
Steve, Are you referring to the endless GIL debate? I googled about what you said. I'll look into it here shortly. I just know one thing, is that I need a comparison for regular code and something about how GIL and threading fit in the picture. It makes it easier for me to understand what is going

Re: threading a 10 lines out of a file

2009-01-05 Thread Steve Holden
alex goretoy wrote: > I've found a great example on how to do threads. It compares a ping > program in regular for loop and with threaded for loop. The link is > below if anyone is interested. > > http://www.wellho.net/solutions/python-python-threads-a-first-example.html > > I hope my eagerness t

Re: threading a 10 lines out of a file

2009-01-04 Thread alex goretoy
I've found a great example on how to do threads. It compares a ping program in regular for loop and with threaded for loop. The link is below if anyone is interested. http://www.wellho.net/solutions/python-python-threads-a-first-example.html I hope my eagerness to post doesn't annoy anyone. I lik