Home

I have a huge log file which contains 3,453,299,000 lines with
different lengths. It is not possible to calculate the absolute
position of the beginning of the one billionth line. Are there
efficient way to seek to the beginning of that line in python?

This program:
for i in range(1000000000):
f.readline()
is absolutely every slow....

Thank you so much for help.

previous
next

Re: Problems with headers in email.message
Re: status of Programming by Contract (PEP 316)?
nameerror upon calling function
Re: undo/redo algo
Re: File Space Allocation + Writing (C++/Linux)
Niechciane i Zapomniane
Nasze Dzieci
Fundacja Iskierka
Podaruj Zycie
Mimo Wszystko