This project has moved and is read-only. For the latest updates, please go here.

BSON questions

Mar 25, 2012 at 3:46 AM

Is there a good place I can go to get an overview of BSON?

I have two key questions:

  1. Using JSON.NET, is it faster to serialize to/from BSON than plain JSON?
  2. If I have an object with a byte[] property, will it only take a single byte of space for each byte in the array?  And similarly 2, 4, 8, bytes for short, int, long arrays?  I am trying to avoid the thing in JSON where a single element in a byte array actually takes at least 2 bytes (like ",7") and sometimes as many as 4 (",127")

Thank you!