Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1274

Performance: avoid referencing 'context' in Event constructor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-0.13.0
    • proton-0.15.0
    • python-binding
    • None

    Description

      Each time an Event object is instantiated its context is checked to determine if the Event is user-defined rather than a native Proton event.

      Referencing the context is expensive - it causes a temp wrapped object to be created then disposed. This can be avoided by checking if the event's class is PN_PYREF, which it will always be for user-defined events.

      Attachments

        Activity

          People

            kgiusti Ken Giusti
            kgiusti Ken Giusti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: