Large file parsing speedup
The file has 4 million lines. I get each line from the file using BufferedReader. Next, the resulting string is parsed using JSONObject and inserted into the database using room
How to get the maximum speed of this process?
So i get the string
val coroutineScope = CoroutineScope(
Dispatchers.IO)
coroutineScope.launch {
val inputStream: FileInputStream
val reader: BufferedReader
if (file.exists()) {
val...