It's been a while since I looked closely at FlatBuffers, but from what I
understand the performance gains are not entirely free but are something
you pay for in the form of a less flexible API. Protocol buffers give you a
lot of freedom to mutate messages in memory, cheaply move a submessage from
one parent message to another, etc. With FlatBuffers you're much more
restricted on how you can mutate a message, and in general you have to
build up a message with a depth-first pre-order traversal. It seems that
for games and use cases with strict latency requirements it is probably
worth dealing with the more restricted API of FlatBuffers (or similar
projects like Capn Proto), but for other use cases the performance gains
don't justify the extra programming difficulty.

On Mon, Feb 4, 2019 at 8:14 AM Arash Pourhabibi-Zarandi <[email protected]>
wrote:

>  I understand the cost of switching to a new framework is high, but the
> benefit of this is also huge. Companies like Google or Facebook that
> provide latency-sensitive services gain a lot by doing this. Is there a
> more fundamental reason discouraging them to switch?
>
> On Monday, February 4, 2019 at 5:09:26 PM UTC+1, Arash Pourhabibi-Zarandi
> wrote:
>>
>> Hi,
>>
>>
>> My question is if FlatBuffers is much faster than Protobuf, why isn't it
>> more widely used compared to Protobuf?
>>
>>
>> It used to be an experimental thing but it seems to be mature enough now
>> but isn't widely used yet. It seems people mostly use Flatbuffers for
>> mobile apps/games. Why is that the case?
>>
>>
>> Arash
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to