Anyone have a general idea of the iOS app size inc...
# serialization
g
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
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
protobuf serialization is the only one we are going to use