Vincent de Phily
33a7d56042
* Return {more,undefined} instead of {more,integer()}, as we can only know the "minimum bytes needed to continue" instead of the actually usefull "total packet size".
...
* Merge all {more,...} clauses of unpack_/1 into one.
* Reformat unpack_/1 for readability.
* Fix some specs, error values, and documentation.
2010-06-29 11:59:56 +02:00
Vincent de Phily
8f7f23a0e5
Rewrite unpack_/1 using pattern matching to get a 30-40% speedup.
...
Simplify pack_* and unpack_{array,map} function clauses to get more readability and a minor speedup.
2010-06-28 18:11:52 +02:00
Vincent de Phily
537322e3b5
Big speedup (around 40%) of maps and arrays encoding by using proper tail recursion.
2010-06-28 14:17:44 +02:00
Vincent de Phily
279121f87f
erlang: Use a simple proplist instead of a dict.
...
A dict is overkill (code, cpu, memory) in most cases, and proplist<->dict conversion can easily be done by the libray user if desired.
This is in line with other erlang libraries I've seen for various encoding schemes.
The map encoder had a bug until I looked at it (see previous commit), so I guess it wasn't used much yet and a change is ok at this stage.
The chosen representation for maps is a tuple containing the proplist as the only element.
2010-06-28 11:56:12 +02:00
Vincent de Phily
0cca90c21d
Fix encoding of fixmap type.
...
The tag value was wrong, and a missing /binary flag caused an error.
2010-06-25 17:32:11 +02:00
UENISHI Kota
57f0598373
erlang: code refined and tests added
2010-06-25 00:44:14 +09:00
UENISHI Kota
92d192277e
erlang: unpack_map's silly bug fixed. use dict:store/3....
2010-06-25 00:22:53 +09:00
UENISHI Kota
2cdfbd8970
erlang: testing pack_map/unpack_map with a silly bug
2010-06-24 07:26:34 +09:00
UENISHI Kota
bc0c5f0cdc
erlang: (un)pack_map improved, incremental unpacking
2010-06-23 09:02:53 +09:00
UENISHI Kota
230ee3a03b
erlang: too short binary to decode causes error {more, Int}.
2010-06-23 01:26:10 +09:00
UENISHI Kota
b1e66256ce
erlang: external APIs' type/specs.
2010-06-22 11:28:36 +09:00
UENISHI Kota
fd80693420
erlang: tests improved and code refined.
2010-06-22 11:15:18 +09:00
UENISHI Kota
7cd41aeb72
erlang: tracing crosslang.rb moving to ../test
2010-06-03 00:17:17 +09:00
UENISHI Kota
d9b467098a
erlang: added more cross-language tests. better type specification.
2010-05-31 23:56:06 +09:00
UENISHI Kota
7d1e51437e
erlang: added usage of cross-language test.
2010-05-31 23:13:32 +09:00
UENISHI Kota
d7d78d9a2b
added more tests,
...
and OMake continuous building.
2010-05-31 00:25:53 +09:00
UENISHI Kota
6b5b76b0c9
initial import from http://bitbucket.org/kuenishi/messagepack-for-erlang
2010-05-30 15:01:10 +09:00