Jul-19-2018, 09:32 AM
Hi, I'm having a function ported from python 2 to python 3 and found that the TextIOWrapper.tell() is the cause that notably slows down the perfomance.
Is there any workaround to solve this problem?
import timeit f=open('file') timeit.timeit(f.tell)In python 3, the execution time of above code example is roughly 0.58s, while in python 2 it's only 0.07s.
Is there any workaround to solve this problem?