Whats the fastest method for deserializing data fr...
# android
s
Whats the fastest method for deserializing data from Realtime Database?
K 1
😶 3
GSON WINS!
g
Gson is really not the best choice of Json for Kotlin
s
It was the fastest in my use case.
Performance was an issue.
g
What kind solutions have you compare?
It also about correctness. We also historically use Gson for many years, but I wouldn’t choose it now for a Kotlin projct
s
Moshi, kotlinX, Gson, Firebase SDK. Gson was fast and already in the project.
g
Gson is fast, but it’s really not the only consideration. Aso Moshi is fast, especially if you measure whole pipeline (it can be integrated with okio streams) Also if speed is the main reason for you, Jackson is probably faster
s
Great. I'll try Jackson. Thanks for the tips