Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4542338
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:22:33+00:00 2026-05-21T15:22:33+00:00

Which kind of serialization is the most meaningful when sending serialized protobuf data via

  • 0

Which kind of serialization is the most meaningful when sending serialized protobuf data via socket in C++? I use boost sockets.

Until now, I sent std::strings via sockets. I have the option to serialize the protobuf objects into a string and send this string via socket.

Is this slow or slower compared to the other serialization types offered by protobuf?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T15:22:34+00:00Added an answer on May 21, 2026 at 3:22 pm

    No. All the serialization methods generate identical output using an identical algorithm. The only savings you are going to have is in time memcpy-ing the data and perhaps the amount of memory used. For all reasonably sized protocol buffers, this is negligible.

    In general, you should pick the serialization method that makes your code most readable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Which kind of Azure diagnositcs log stores the data for webrole instance count change,
I'm scaling onstage MovieClips via AS properties scaleX or scaleY, which kills any kind
which kind of signal i've to handle in a AF_INET socket, both server and
Months ago I implemented a component which receives data via UDP-network, deserializes it via
I'm always confused which kind of enumeration I should use. A hashtable, an enum,
Possible Duplicate: Which kind of pointer do I use when? I read that std::auto_ptr
Possible Duplicate: Which kind of pointer do I use when? There are many pros
I was wondering which kind of expressiveness fits a language used to generate particle
it seems that Markdown.NET does not escape the following: <script> which is kind of
I have a requirement which sounds like kind of simple but hard to implement

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.