msgpack-erlang/README.rst

59 lines
1.3 KiB
ReStructuredText
Raw Normal View History

2012-07-17 15:22:47 +00:00
##################
MessagePack Erlang
##################
2012-07-21 12:24:25 +00:00
.. image:: https://secure.travis-ci.org/msgpack/msgpack-erlang.png
2012-07-17 15:22:47 +00:00
prequisites for runtime
-----------------------
2013-02-03 13:06:03 +00:00
Erlang runtime system ( http://erlang.org/ ), >= R15B -- otherwise rebar won't work.
2012-07-17 15:22:47 +00:00
rebar.config
------------
::
{deps, [
{msgpack, ".*",
{git, "git://github.com/msgpack/msgpack-erlang.git", "master"}}
]}.
Simple deserialization
2012-07-17 15:22:47 +00:00
::
Ham = msgpack:pack(Spam),
{ok, Spam} = msgpack:unpack(Ham).
Stream deserialization
::
{Term0, Rest0} = msgpack:unpack_stream(Binary),
{Term1, Rest1} = msgpack:unpack_stream(Rest0),
...
2013-02-17 19:29:17 +00:00
experimental feature: NIF (de)serializer
----------------------------------------
since 0.1.1 - only tested in MacOS
::
2013-02-17 19:40:54 +00:00
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).
2013-02-17 19:29:17 +00:00
2012-07-17 15:22:47 +00:00
License
-------
Apache License 2.0