Anyone have a general idea of the iOS app size increase implications using the kotlinx serialization protobuf library? Adding the library to our ios code with 5 very small @Serializable classes has resulted in a 377 Kb increase in app size. Does this sound correct? Is the majority of the cost coming from the library or generated code - and how does with scale when adding significantly more Serializable classes?
r
rnett
08/12/2021, 5:45 AM
The generated serializer for
@Serializable
classes is format-independent, so you can try only including
-core
(or
-json
) and comparing that to the protobuf format, which I suspect is most of your size increase.
g
Gene Cahill
08/12/2021, 4:20 PM
protobuf serialization is the only one we are going to use