Open lukashaertel opened 6 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.
Memory profiling points to GSON initializing way to many object reference to perform tasks that should be simple. Replacement idea: kotlin-serialization on JSON.