This PR adds BSON marshaling and unmarshaling support to the geojson types. The goal is to mimic the functionality of the JSON. This should allow the types to work seamlessly with the mongodb driver.
Benchmarks for JSON vs. BSON are interesting. BSON is faster but uses much more memory.
Requested in https://github.com/paulmach/orb/issues/122
This PR adds BSON marshaling and unmarshaling support to the geojson types. The goal is to mimic the functionality of the JSON. This should allow the types to work seamlessly with the mongodb driver.
Benchmarks for JSON vs. BSON are interesting. BSON is faster but uses much more memory.