RE: Could you suggest optimisations ?

2009-01-14 Thread Barak, Ron
Hi Terry, -Original Message- From: Terry Reedy [mailto:tjre...@udel.edu] Sent: Wednesday, January 14, 2009 01:57 To: python-list@python.org Subject: Re: Could you suggest optimisations ? Barak, Ron wrote: > Hi, > > In the attached script, the longest time is spent in the

Re: Could you suggest optimisations ?

2009-01-13 Thread Terry Reedy
Barak, Ron wrote: Hi, In the attached script, the longest time is spent in the following functions (verified by psyco log): I cannot help but wonder why and if you really need all the rigamorole with file pointers, offsets, and tells instead of for line in open(...): do your processing.