-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Why isn't the json data written as binary data? #348
Comments
Take a browser nowadays, all the JSON parsing is done for you. So it is simple AND fast. Also the big payload isn't in the JSON... Yes, you could certainly load a big binary blob and parse it using typed array API to be fast but I wouldn't call that so "simple". We actually considered another form of binary JSON can you remind me @pjcozzi ? but that's post v1.0. |
Well, I'm programming in C/C++ so JSON is a big hassle. Guess this file format isn't for me. Sorry if I've bothered you. I just think it's strange - a format for OpenGL, where native applications are more widespread. |
@pwnedary there are tons of C++ JSON library, not to mention that they are part of SDK if you use iOS (and probably Android too). But it is true that the first version of glTF is targeting more web and mobile than desktop. |
@fabrobinet for binary, we considered http://msgpack.org/. @tfili and I are actually looking at this now. |
Is it already implemented or already rejected? |
We've had good results from tinygltf which is a header-only library for C++ |
Is it not a bit counter-intuitive considering that your goal is to be simple and fast?
The text was updated successfully, but these errors were encountered: