What is the fastest way to encode the arbitrary struct into bytes?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/golang

Our great sponsors
  • SonarQube - Static code analysis for 29 languages.
  • ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
  • InfluxDB - Access the most powerful time series database as a service
  • go_serialization_benchmarks

    Benchmarks of Go serialization methods

    This might be of interest: https://github.com/alecthomas/go_serialization_benchmarks

  • msgp

    A Go code generator for MessagePack / msgpack.org[Go]

    For a similar case at MinIO we use messagepack - with tinylib/msgp.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • MessagePack

    MessagePack serializer implementation for Java / msgpack.org[Java]

    so appreciate such a detailed reply, thanks. btw, why did you choose tinylib/msgp from 4 available go-impls?

  • cbor

    CBOR codec (RFC 8949) with CBOR tags, Go struct tags (toarray, keyasint, omitempty), float64/32/16, big.Int, and fuzz tested billions of execs.

    Ha, no suggestions for cbor https://github.com/fxamacker/cbor

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts