-
Type: Task
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: Performance Benchmarking
-
None
json_encode($document->toPHP(['root' => 'array'])) is 4x faster than $document->toCanonicalExtendedJSON()
Even if they don't produce the same output, their purpose and performance should be very similar.
Related: https://github.com/mongodb/mongo-php-library/pull/1169#discussion_r1333978256
- depends on
-
CDRIVER-4740 Improve performance of bson_utf8_escape_for_json
- Closed
- related to
-
PHPLIB-1237 Implement Parallel Benchmarks
- Closed