Code Monkey home page Code Monkey logo

packsnap's Introduction

Packsnap

MessagePack is great at serializing data quickly.

Snappy is great at compressing data quickly.

Packsnap serializes datastructures using MessagePack and Snappy.

Examples

Packsnap.pack("a simple string")
=> "\x10<\xAFa simple string"

Packsnap.pack(["an array", 3])
=> "\v(\x92\xA8an array\x03"

Packsnap.pack("long key" * 15)
=> "{(\xDA\x00xlong key\xFE\b\x00\xBE\b\x00"

# And a totally useless benchmark (Macbook Air 11")
Benchmark.realtime { 1_000_000.times { Packsnap.pack("value") } }
=> 1.654603

Copyright

MessagePack code copyright 2012 FURUHASHI Sadayuki

Additions copyright Burke Libbey

License: Apache License, Version 2.0

packsnap's People

Contributors

frsyuki avatar gfx avatar tokuhirom avatar muga avatar methane avatar tanakh avatar makamaka avatar kazuki avatar kzk avatar moriyoshi avatar koichiro avatar advect avatar burke avatar dgryski avatar xerial avatar repeatedly avatar dbussink avatar hayamiz avatar firewood avatar ericliang avatar kazuho avatar kjim avatar kou avatar watabiki avatar mzp avatar bketelsen avatar hideyuki avatar nicolasdespres avatar kuenishi avatar cho45 avatar

Stargazers

Diego Sueiro avatar

Watchers

James Cloos avatar  avatar

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.