Open
Description
I have a serious performance issue when parsing.
To demonstrate how it works, I wrote the following code to compare the performance of native JSON.parse
and Json { ignoreUnknownKeys = true }.decodeFromString
After that, I perform a time measurement via chrome profile and get this result
Json { ignoreUnknownKeys = true }.decodeFromString
1.92s
Is it possible to somehow speed up the work? Use partial JSON.parse in js implementation?
For example, create a Kotlin DTO class and populate it like this?
@Serializable
class Foo {
val bas: String
}
let parseData = JSON.parse ('{"bas": "hello"}')
Object.assing (new Foo (), parseData)
is it possible to somehow speed it up?