Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML support #114

Open
ugorji opened this issue Oct 29, 2015 · 1 comment
Open

XML support #114

ugorji opened this issue Oct 29, 2015 · 1 comment

Comments

@ugorji
Copy link
Owner

ugorji commented Oct 29, 2015

go-codec currently supports

  • Binary: Msgpack
  • Binary: CBOR
  • Text: JSON

For completeness, it should support XML also.

Though XML has fallen out-of-favor, it is still widely used. The encoding/xml in the standard library is not efficient, and does not conform to the simplicity used in encoding/json. We have a chance to add a performant XML encoder/decoder as just another format.

We are attempting this due to perceived issues with encoding/xml:

codec framework will offer the following benefits

  • VASTLY improved performance (when using reflection-mode or codecgen)
  • simplicity and consistency: with the rest of the supported formats
  • all other benefits of codec framework (streaming, codegeneration, etc)

go-codec is not a drop-in replacement for encoding/xml, as the tags and style will not transfer over.
Having said that, it is a replacement, based on the simplicity and performance of codec.

The goal is for this to be like JAXB for Go.

@2opremio
Copy link
Contributor

+1. This could get us up to a 7% speedup in the Scope probes without making any investments since we are already using your library and codecgen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants