<@U0DQC8QHM> Cache how ?
# announcements
o
@eric Cache how ?
e
...just making sure that the reference to the adapter from this getAdapter call gets reused. reuse the adapter reference instead of looking it up (Moshi.adapter requires canonicalizing the type and then doing the hashmap lookup for the adapter from the type).
o
canonicalizing the type
What does this mean?
e
For example,
String[]
can be a GenericArrayType or a Class, sadly. Moshi/Gson have to canonicalize the type to ensure consistency.