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

Add msgpack handler for smarter JSON encoding #7154

Closed
wants to merge 1 commit into from

Commits on Jun 2, 2017

  1. Add msgpack handler for smarter JSON encoding

    The msgpack handler correctly retains information about whether the
    number is a float or an integer, unlike JSON. While the format is not
    human-readable, it makes a good interchange format for applications that
    don't necessarily care about a human readable output.
    
    This uses `github.com/tinylib/msgp` to precompile the marshaling for
    `models.Row`. Since we only use this library to marshal the one type,
    this is a much more efficient method of encoding than using reflection.
    jsternberg committed Jun 2, 2017
    Configuration menu
    Copy the full SHA
    a44f1a8 View commit details
    Browse the repository at this point in the history