Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-1682

Optimize the parse tree match algorithm to avoid O(N) lookup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.12.0
    • 1.13.0
    • Routing Engine
    • None

    Description

      The parse tree pattern match algorithm is optimized to search using a key that is made up of a sequence of tokens.

      If all keys inserted into the parse tree are only single tokens then the lookup degrades into a linear list search. 

      The treatment for every address is looked up in the parse tree.  If the address is not found the default treatment is used.  Lookups that miss end up performing O(N) searches.

      The match algorithm should be re-designed to avoid O(N) searches for single token patterns.

      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: