Analyse BSON\Document::toCanonicalExtendedJSON performance

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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

              Assignee:
              Andreas Braun
              Reporter:
              Jérôme Tamarelle
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: