Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
C++ Ruby C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
doclib
ext/packsnap
lib
spec
.gitignore
ChangeLog
Gemfile
README.md
Rakefile
packsnap.gemspec

README.md

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

Something went wrong with that request. Please try again.