Brian
Sent from my iPhone
Clifton
{} beginning and ending of a hash
[] beginning and end of an array
: separates keys and values
, separates items in an array
All tokens are 1 character. I don't think you can do any better than
that unless you go to a binary data format.
A better question is: Can V8's JSON parsing and stringifying functions
be further optimized?
Well, that's a good question. How would you implement JSON, but more
efficiently, outputting to a string?
{} beginning and ending of a hash
[] beginning and end of an array
: separates keys and values
, separates items in an array
All tokens are 1 character. I don't think you can do any better than
that unless you go to abinary data format.
You could message that client that they *need* to get binary data
through JSON, then the client can make a normal GET or XHR request
directly to that data. That should yield much better performance so
long as you are leveraging nodejs's piping abilities.
Just a suggestion. I'm likely going to implement MessagePack soon in
our backend application for storing client session data (rather than
Marshal), so that our nodejs workers can use the same means of
authentication.
Clifton