Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Protobuf vs JSON - Objective-C/iOS

In Objective-C, making iOS apps, what is the best way to go regarding serialization? Protobuf or JSON?

like image 990
Filipe Mota Avatar asked Jan 17 '23 19:01

Filipe Mota


1 Answers

Protobuf is more time- and space-efficient, JSON is probably more nerve-efficient. As long as there is no reason for the former two (e.g. because the amount of data to be serialized is small and serialization is not time-critical), I would stick to JSON.

This also makes debugging more fun :-)

like image 81
ovenror Avatar answered Jan 26 '23 01:01

ovenror