Zoltan Borok-Nagy has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/15083 )

Change subject: IMPALA-4224: part 2: refactor filter routing table to support 
sinks
......................................................................


Patch Set 6: Code-Review+1

(2 comments)

http://gerrit.cloudera.org:8080/#/c/15083/6/be/src/runtime/coordinator-filter-state.h
File be/src/runtime/coordinator-filter-state.h:

http://gerrit.cloudera.org:8080/#/c/15083/6/be/src/runtime/coordinator-filter-state.h@167
PS6, Line 167: emplace
Based on the text from 
https://en.cppreference.com/w/cpp/container/unordered_map/emplace this might 
cause an extra copying of filter when the key exists:

"The element may be constructed even if there already is an element with the 
key in the container, in which case the newly constructed element will be 
destroyed immediately."


http://gerrit.cloudera.org:8080/#/c/15083/6/be/src/runtime/coordinator-filter-state.h@167
PS6, Line 167: std::piecewise_construct,
             :                          std::forward_as_tuple(filter.filter_id),
             :                          std::forward_as_tuple
nit: I see it's moved from coordinator.cc but maybe we could just use 
std::make_pair() to keep it simple.



--
To view, visit http://gerrit.cloudera.org:8080/15083
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Idc53ae0167af45e32093a024ff2d6e2c6466c876
Gerrit-Change-Number: 15083
Gerrit-PatchSet: 6
Gerrit-Owner: Tim Armstrong <[email protected]>
Gerrit-Reviewer: Bikramjeet Vig <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
Gerrit-Comment-Date: Thu, 30 Jan 2020 15:14:21 +0000
Gerrit-HasComments: Yes

Reply via email to