I find that Gson deserialization is often very slow (like a few seconds) when I step over from a breakpoint in Android Studio. If the same code is executed in the debugger, but not when manually navigating through it, it works in βnormalβ time (for example, several milliseconds).
I have not experienced this with any other code, and it does not seem to matter what I am deserializing, or how small or large Json is.
My version of Gson is 2.3.1
Has anyone else experienced this or knew any way to fix it?
source share