How to improve performance by using binary serialization instead of json or xml

Xml and (later) json formats became a standard in development and many programmers do not have an idea that using them may be a bad choice for network interactions or persisting data. People are used to text but computers do not need it!

Have you ever thought how many cycles your CPU wastes on parsing text? Practically the whole web technology is text-based. Each time you load a page in a browser a remote server has to parse your request headers to understand what you want. Then your browser is parsing response headers, HTML, CSS. Even JavaScript program is interpreted from a text form. Believe me, this is a huge overhead!

Read more ...