Review Request of Python Code

BartC bc at freeuk.com
Thu Mar 10 13:36:13 EST 2016


On 10/03/2016 18:12, subhabangalore at gmail.com wrote:
> On Wednesday, March 9, 2016 at 9:49:17 AM UTC+5:30, subhaba... at gmail.com wrote:

> Thank you Steve for writing the whole code. It is working full
> and fine. But speed is still an issue. We need to speed up.

Which bit is too slow? (Perhaps the print statements in your original 
code will give a clue.)

How many rows, lines and words are we talking about (ie. how many inner 
loops)? How big is the text file? Is the outer function called once and 
that shows the problem, or many times?

It might be that the task is big enough that it actually takes that long.

-- 
Bartc



More information about the Python-list mailing list