Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-11406

Vectorization: StringExpr::compare() == 0 is bad for performance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0, 2.0.0
    • 1.3.0, 2.0.0
    • Vectorization
    • None

    Description

      StringExpr::compare() == 0 is forced to evaluate the whole memory comparison loop for differing lengths of strings, though there is no possibility they will ever be equal.

      Add a StringExpr::equals which can be a smaller and tighter loop.

      Attachments

        1. HIVE-11406.01.patch
          55 kB
          Matt McCline

        Activity

          People

            mmccline Matt McCline
            gopalv Gopal Vijayaraghavan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: