I’m writing a Google Chrome extension that should work with really big arrays of data (1k-30k entries, each has 9-10 fields). I need to export this to CSV (not JSON). Don’t ask me why, that’s the task, the data should be readable and ready for import into Excel and Google Sheets for example).
For now building a string in a simple for() loop takes about 30-40 seconds (and the extension view has to be opened for all this time in order for the script to complete), which is in fact even more than the time needed to parse that data from the online source which is monitored by the extension. That’s absolutely intolerable for the end user. Are there any ways to achieve the goal without writing a server side with SQL storage and retrieving CSV from server?