Home > other >  Python3 why repeat the open function, the execution speed will speed up?
Python3 why repeat the open function, the execution speed will speed up?

Time:09-21

I have 990 w file, named test0. CSV to test9899999. The CSV, every 10000 in sequence in a folder, a total of 999 folders,
For example I open test13456 CSV and close, takes 0.3 seconds, I once again open test13456. CSV and close, takes into 0.15 seconds, tested several files, is always the same, and I found that I went to the open recently have a file open, read speed is very fast, is this why?

CodePudding user response:

Test, open the file within the 300 w times recently, will be very fast, want to know why?
  • Related