Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Being clear about the lack of msgpack support #5

Closed
terhechte opened this issue Aug 3, 2014 · 6 comments
Closed

Being clear about the lack of msgpack support #5

terhechte opened this issue Aug 3, 2014 · 6 comments

Comments

@terhechte
Copy link

It took me some time to figure out that transit-js does not support the transit msgpack encoding. I finally found that info by doing the tour. It would be nice if the transit-js would immediately list on the frontpage / in the readme which transit encodings are supported without the necessity to go hunting for this information in other documents.

@puredanger
Copy link
Contributor

Thanks, that seems quite reasonable. I'll let David decide exactly where that info should go in the readme.

@swannodette
Copy link
Contributor

I've added a note about this to the first paragraph in the README.

@skrat
Copy link

skrat commented Aug 4, 2014

Nice, this was first thing I was looking for when I came from @swannodette's article about transit-cljs. Is there any issue with implementing msgpack unmarshaller or is it just pile of work to be done?

@swannodette
Copy link
Contributor

@skrat it is a bit of work but more importantly there's little use in pursuing the msgpack unmarshaller until there's evidence there's a performance advantage to doing so.

@skrat
Copy link

skrat commented Aug 4, 2014

There is a big one when you transfer big typed numerical arrays for use with WebGL. We use msgpack for that as it provides much smaller downloads and much faster unmarshalling into JS ArrayBuffer. Same goes for complex structures that contain both numerical arrays and textures. This we can transfer complete 3d model in a single binary blob with much better download and parse times compared to JSON + separate requests for texture files. This is not your typical "tweet list" or "address book" use case but still ;)

@swannodette
Copy link
Contributor

@skrat I definitely understand the use case. We will likely deliver MessagePack encoding support but it's not a high priority at the moment. I've added an issue for it here #6.

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

No branches or pull requests

4 participants