diff --git a/docs/mkdocs/docs/api/basic_json/to_bson.md b/docs/mkdocs/docs/api/basic_json/to_bson.md index 6374d4c86..786fbc9e0 100644 --- a/docs/mkdocs/docs/api/basic_json/to_bson.md +++ b/docs/mkdocs/docs/api/basic_json/to_bson.md @@ -46,7 +46,9 @@ Strong guarantee: if an exception is thrown, there are no changes in the JSON va ## Complexity -Linear in the size of the JSON value `j`. +Proportional to the size of the JSON value `j` multiplied by its maximum nesting +depth, `O(n × d)`. BSON length prefixes are computed recursively before nested +values are written. ## Examples