Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"whereas JSON will always use floats to represent integer values."

It might use floats to represent integers in memory, but when json is transferred over the wire it's a textual encoding so each digit will consume 8 bits.



That's true, but I guess one should then mention a 5 digit number would consume less space in memory than in textual format. MsgPack recognizes this and stores that 5 digit number using the minimum number of bits required, but this wouldn't be possible in the usual json string formats.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: