Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-101264

Explore efficient implementation of switch-based visitor pattern for Expression classes

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      • Define an enum type to assign to each Expression-derived class
      • Implement a visitor method that, using the above enum, invokes the proper callback method exposed by a type (provided as a template argument)
      • Ensure that the performance of the switch operation is comparable with the performance of the equivalent virtual method dispatch (e.g. execute(), optimize() or visit())

      See https://gist.github.com/dpercy/b411a4fa92af1a5bb5bcd2790fc893a9 and the branch alby/SERVER-97130

            Assignee:
            Unassigned Unassigned
            Reporter:
            alberto.massari@mongodb.com Alberto Massari
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: