3 ms·
Yes, otherwise I wouldn't come up with such numbers. I maintain several such serializers with various feature sets. Yes, only serialization would be slow. Yes
by rurban 10y ago
Yes, otherwise I wouldn't come up with such numbers.
I maintain several such serializers with various feature sets.
Yes, only serialization would be slow.
Yes, going directly to objects would be faster also. YAML or native serializers do that.
But your estimation is flawed. Fastest are still special pre-compiled serializers, such as protobuf, or better variants thereof which can mmap directly native objects.
then binary serializers such as messagepack or the insecure bson because of compression.
then json because of simplicity and limited recursion.
then the dynamic monsters, which support references and objects.