Home > other >  How to improve the python with... When the open file read operation speed?
How to improve the python with... When the open file read operation speed?

Time:09-22

I now need to scan a system Log file, with tens of thousands of stored inside the system error information, I'm with.. Open open operation to read it every line information, and each line has a judge, judge whether there is value, I need always to read the latest time of the birth of the log information, middle takes about two or three minutes, I'd like to have this period of time saving, excuse me, how to improve the speed of reading it, and this time the operation of the file to read from the old time to start reading, read the latest time of the log information, if the rearrangement of the sequence, starting from the latest time in turn read can solve my problem
  • Related