lib/msgpack: unify several cases for deserialization
authorLucas Bajolet <lucas.bajolet@gmail.com>
Mon, 30 Apr 2018 22:23:39 +0000 (18:23 -0400)
committerLucas Bajolet <lucas.bajolet@gmail.com>
Tue, 1 May 2018 18:32:56 +0000 (14:32 -0400)
commitdadb13228e4316c6c673d4ced061716d965f877c
tree55a25906339cefee97f80da3b367a1163d2f74f3
parent63ade15798b72a9e25fe9529c3ce528434314ac2
lib/msgpack: unify several cases for deserialization

Some cases were treated independently while retaining mostly the same
code.

This commit tries to unite such cases into a single branch.

Doing so helps readability, reduces code duplication and should
hopefully improve performance as the number of tests to be performed is
lower.

Signed-off-by: Lucas Bajolet <lucas.bajolet@gmail.com>
lib/msgpack/read.nit