Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1331

Avoid realloc in bulk execution

      _mongoc_write_command splits a stream of documents (all inserts, all updates, or all deletes) to the server 16 mb at a time. Between each 16 mb batch it destroys the command document cmd and reinitializes it. This wastes time in malloc. Just bson_reinit it after the first batch, and bson_destroy only at the end.

            Assignee:
            ian.boros@mongodb.com Ian Boros
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: