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

Optimize conversion of varstring to str

    Details

    • Type: Improvement
    • Status: Accepted
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Code Generator
    • Labels:

      Description

      buildExpr() on a cast of a varstring to a string looks like it currently clones.

      Better would be to assign the length to a temporary variable, and associate the address of the original string with the new string. It would save a string clone.

      Example is passing a varstring to a function requiring a sting e.g., toUpper.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: