Terenz Posted March 22, 2020 Share Posted March 22, 2020 (edited) Hello, I'll explain. I'm donwloading a very big CSV, not in size (is less than 500kb) but has many lines (5000+) I'll take this CSV and convert to a multidimensional array, and this operation require some time. Pratically the link is static, so thay never change, and this CSV is updated often. The value are in order, so the last added are from line 1 (line 0 is the column) Since i don't what to re-create the array from zero every time, how i can get only the difference from the CSV/Array in memory and the "new" CSV", and the put the difference inside the array? Thanks Edited March 22, 2020 by Terenz Nothing is so strong as gentleness. Nothing is so gentle as real strength Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted March 22, 2020 Share Posted March 22, 2020 @Terenz Did you consider to use SQLite to store the CSV file content? Could you describe more the end goal? Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Nine Posted March 22, 2020 Share Posted March 22, 2020 I think I understand your issue. You have small (it is not big at 500kb) .csv file. You want to add the new rows into a container (could be an array), which come after the old rows. So currently you are grabbing all rows every time to skip old ones, until you find new rows. Right ? You are currently using FileReadtoArray ? If all my assumptions are true, there are easy ways to increase speed. But you will have to provide your current script, along with some example of the csv files... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now