Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-270

Make command monitoring lazy

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.9.1
    • Affects Version/s: None
    • Component/s: None
    • None

      Currently, we always create the command monitoring event structs and then only send them if the user has specified an event handler. We can instead make the event creation lazy (i.e. only create them if a handler is specified) to avoid unnecessary allocations in the optimal case.

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: