help make it faster please
bonono at gmail.com
bonono at gmail.com
Thu Nov 10 13:37:50 EST 2005
don't know your intend so have no idea what it is for. However, you are
doing :
wordlist=contDict.keys()
wordlist.sort()
for every word processed yet you don't use the content of x in anyway
during the loop. Even if you need one fresh snapshot of contDict after
each word, I don't see the need for sorting. seems like wasting cycles
to me.
pkila... at gmail.com wrote:
> Actually I create a seperate wordlist for each so called line.Here line
> I mean would be a paragraph in future...so I will have to recreate the
> wordlist for each loop
More information about the Python-list
mailing list