Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
magicMirror10755197dNever try to reinvent the wheel.
Android has very usefull amd optimized libraries.
azuredivay860197d@magicMirror JSONArray is part of android/Java tho :/ Gson is external repo, so ideally ud want to avoid anything from outside unless necessary no?
+ external API isnt the best, so only parsing a couple of properties ignoring the dozens other where needed, I assumed wud be faster + lighter (since i did sign em nullable)
Il look at gson's GH, im curious what they do, probably each nested JSONArray in its own thread or some parallel processing coz nothing else explains something so straightforward giving such different performance -.-
dotenvironment893196d@azuredivay retrofit is pretty much the standard for api requests in professional android apps. gson is like java in general : widely used but pretty much a legacy. volley used to be like gson, but now even legacy projects seem to not have volley and instead use retrofit. moshi nd jackson are better options than gson
networking and parsing are 2 concepts which are usually library based in every framework : express,spring ktor and ofcourse the android. i always prefer writing code by my own instead of relying on libs, but for networking and parsing, i straight up add retrofit+moshi in an app without looking back