Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-429

Refactor code in TypeImpl.cc

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.6.0
    • C++
    • None

    Description

      Propose to make two changes to the code in TypeImpl.cc
       
      1. In convertType() function: in the case of proto::Type_Kind_STRUCT, two vectors are created but never used. They shall be removed.

      2. In TypeImpl::parseType() function: the function calls input.substr() to copy the substring before parsing it. This string copy can be avoided by directly parsing on the input string. Please see pull request for details.

      Attachments

        Issue Links

          Activity

            People

              fangzheng Fang Zheng
              fangzheng Fang Zheng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: