-
Type: Epic
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: js-bson, Performance
This project proposes a new deserialization API that pulls apart a BSON byte sequence into its basic ordered key/value form. Users would then be able to easily build upon the core byte information of a document to access the byte sequences of a BSON value given a key that exists in the document (i.e. by providing something modular we provide something extensible). This API would give the driver the ability to provide a granular and customizable decoding step so that users can obtain the byte interpretation that best suits their use case. At the center of this project is a Javascript generator which provides the ability to hold a reference to the original BSON bytes and suspend any parsing work until requested by the iterator.