So I'm making this script that deals with millions of files, potentially. Basically my script randomly selects a file, deals with the file, once it's done with it, it FileAppends to a list of IDs so it knows not to go over it again and uses FileRead with "If InStr" to search for the ID (if the ID is found it goes back to randomly picking a new one). Is this the best way I could do this? I'm dealing with probably a hundred per minute and always FileAppends after it deals with the file. This in return is making really large files so over time it will take longer for it to FileRead and scan with If InStr. Right? Like will AHK slow down significantly if FileRead is reading a file that's 20MB? 60MB?
Second question: My script is using UrlDownloadToFile, FileRead, and If InStr. Do I have to use Sleep in between them to be safe or will they not go to the next part of the script until one of them completes first? I'm trying to make my script as fast as possible. Thank you in advance
![Smile :)](./images/smilies/icon_e_smile.gif)
.