eurofurence / ef-app_android

Eurofurence App (Android version)
MIT License
13 stars 5 forks source link

Replace GSON #283

Open lukashaertel opened 6 years ago

lukashaertel commented 6 years ago

Memory profiling points to GSON initializing way to many object reference to perform tasks that should be simple. Replacement idea: kotlin-serialization on JSON.

MarcusWolschon commented 5 years ago

Moshi seems to offer better performance then kotlinx.serialization.

JsonUtil.kt seems to serialize to a String and deserialize from a String while Gson can work more lightweight with a CharBuffer referencing the original byte[] or InputStream of the network-response.

Replacing StringReuest with JsonObjectRequest is no solution here because it uses a String internally.