Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORC-429: [C++] Refactor code in TypeImpl.cc #333

Merged
merged 1 commit into from Nov 2, 2018

Conversation

fangzheng
Copy link
Contributor

  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.

@xndai
Copy link
Contributor

xndai commented Nov 1, 2018

Change looks good to me. I will commit this for you if I don't see any other feedback.

@xndai xndai merged commit 529bfce into apache:master Nov 2, 2018
@fangzheng
Copy link
Contributor Author

Thanks, Xiening!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants