Home Help Center

Protobuf vs. Ice serialization

mmorckosmmorckos Member Michael MorckosOrganization: University of WaterlooProject: Distributed multi-robot control framework
Hi,

Although I implemented a system using protobuf and ICE sometime ago, I wasn't aware of your support of protobuf until recently. When I viewed the Ice protobuf demo I noticed that you are using Ice serialization mechanism to serialize a protobuf-based object. I'm wondering why you didn't use the protobuf provided serialization and instead sent the data as a string or an array of bytes.

In my application I use protobuf serialization. Using the protobuf serialization seemed to produce more compact messages. Moreover, if you are constantly adding new protobuf messages in your app, you won't need to heavily modify your SLICE interface.

Is there a particular reason why you used Ice serialization instead.

Regards,
Michael

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    We are not using Ice serialization for protobuf messages. Protobuf messages are encoded with protobuf into an Ice byte sequence. See the description on our web site here for more details.

    Cheers,
    Benoit.
  • mmorckosmmorckos Member Michael MorckosOrganization: University of WaterlooProject: Distributed multi-robot control framework
    Hi Benoit,

    I apologize for the hasty inquiry, I didn't examine the code closely. This is exactly how I handle serialization in my application, thanks for the clarification.

    Regards,
    Michael
Sign In or Register to comment.