Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Differentiate between [u8] and binary. #12

Open
mneumann opened this issue Feb 15, 2014 · 0 comments
Open

Differentiate between [u8] and binary. #12

mneumann opened this issue Feb 15, 2014 · 0 comments

Comments

@mneumann
Copy link
Owner

[u8] will be encoded as arrays of integers, which is not very efficient as every byte potentially needs two bytes. It would be better to encode it as a msgpack binary (when supported). But with the current Decodable trait this seems to be not possible as we cannot specialize code for a specific element type.

A solution is to introduce a type binary = [u8].

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant