Writing 100,000 lines in a csv in fastest way possible
问题 I m trying to create a zip of 100 csv. I need to write 100,000 lines in a single csv in fastest way possible. I am using openCSV, ZipEntry method to write to csv. Some Code used: ZipEntry zipentry = new ZipEntry(filename); zos.putNextEntry(entry); CSVWriter writer = new CsvWriter(new OutputStreamWriter(zos)); writer.writeNext(entries); //entries is single line of csv Currently its taking 1.5 secs to write a single csv and overall its taking around 120-140secs to create complete zip. I have