Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-17253

Optimize the way expressions and cursor are resolved in the context

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4.0
    • Component/s: Code Generator
    • Labels:

      Description

      There are some queries (e.g., slowcomp8) which spend a large proportion of their time resolving expressions and cursors in the current context. There are a couple of relatively simple improvements:

      • use the hash table more of the time. It is only problematic if a cursor is added that was already in scope
      • limit the search range in the expressions.

      The second could be done by having separate arrays for the different types, but the short term fix is to save the index of the last cursor, to avoid in the common case searching large numbers of expressions.

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              ghalliday Gavin Halliday
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: