Coder Social home page Coder Social logo

newtonsoft.msgpack's People

Contributors

darkl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

newtonsoft.msgpack's Issues

Newest version of Newtosoft.Json support

Hi,

Really nice package! Just what I was looking for.

However, we could not integrate the package since we are using Newtonsoft.Json 7.0.1 and the package has a dependency for Newtosoft.Json < 7.0.

Will there be an update soon?

Thanks
/Bruno

Serialize numeric types with smallest lossless format

What do you think about serializing numeric types with the smallest lossless format? For example, if I have a double[] of length N containing 0's and 1's, its contents (after the header) would be stored using N bytes, because 0 and 1 fit losslessly into a positive fixnum. If I try to then deserialize to a double[], that would work.

msgpack-cli is already doing this for ints and uints internally.

The implementation of DoubleMsgPackValue.Pack would become something logically similar to this:

public override void Pack(Packer packer)
{
    if (this.Value == (int)this.Value)
    {
        packer.Pack(this.Value < 0 ? (int)this.Value : (uint)this.Value);
    }
    else if (this.Value == (float)this.Value)
    {
        packer.Pack((float)this.Value);
    }
    else
    {
        packer.Pack(this.Value);
    }
}

What are your thoughts? This could potentially be an optional configuration on the MessagePackWriter. I'd be willing to help out with this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.