MessagePack (de)serializer implementation for Erlang / msgpack.org[Erlang]
Go to file
2013-09-09 21:52:59 +09:00
c_src update build script not to build each time 2013-02-18 04:59:10 +09:00
include add atom packing in favor of #12 2013-09-09 21:49:23 +09:00
src add atom packing in favor of #12 2013-09-09 21:49:23 +09:00
test add pattern match to use smaller format 2013-03-16 23:31:14 +09:00
.gitignore update .gitignore 2013-02-18 05:07:51 +09:00
.travis.yml add R16B support (just tested) 2013-07-07 00:25:35 +09:00
LICENSE-2.0.txt add license terms and a bit cosme 2011-05-02 17:29:00 +09:00
Makefile a bit more refactor 2013-03-17 10:21:43 +09:00
README.rst add new spec 2013-09-09 21:52:59 +09:00
rebar update rebar 2013-02-02 21:00:35 +09:00
rebar.config pin proper version 2013-07-28 10:45:13 +09:00

##################
MessagePack Erlang
##################

.. image:: https://secure.travis-ci.org/msgpack/msgpack-erlang.png

prequisites for runtime
-----------------------

Erlang runtime system ( http://erlang.org/ ), >= R15B -- otherwise rebar won't work.
Based on [the new msgpack spec 232a0d](https://github.com/msgpack/msgpack/blob/232a0d14c6057000cc4a478f0dfbb5942ac54e9e/spec.md) .

rebar.config
------------

::

   {deps, [
     {msgpack, ".*",
       {git, "git://github.com/msgpack/msgpack-erlang.git", "master"}}
   ]}.

Simple deserialization

::

   Ham = msgpack:pack(Spam),
   {ok, Spam} = msgpack:unpack(Ham).

Stream deserialization

::

   {Term0, Rest0} = msgpack:unpack_stream(Binary),
   {Term1, Rest1} = msgpack:unpack_stream(Rest0),
   ...

experimental feature: NIF (de)serializer
----------------------------------------

since 0.1.1 - only tested in MacOS, Linux

::

  src/msgpack.erl:343:<0.131.0>:   serialize: 0.405 s
  src/msgpack.erl:344:<0.131.0>: deserialize: 0.470 s
  src/msgpack.erl:345:<0.131.0>: for 1884 KB test data(msgpack).
  src/msgpack.erl:349:<0.131.0>:   serialize: 0.019 s
  src/msgpack.erl:350:<0.131.0>: deserialize: 0.036 s
  src/msgpack.erl:351:<0.131.0>: for 1884 KB test data(msgpack_nif).
  src/msgpack.erl:355:<0.131.0>:   serialize: 0.043 s
  src/msgpack.erl:356:<0.131.0>: deserialize: 0.027 s
  src/msgpack.erl:357:<0.131.0>: for 3828 KB test data(t2b/b2t).


License
-------

Apache License 2.0