Tim Armstrong has posted comments on this change. ( http://gerrit.cloudera.org:8080/11545 )
Change subject: IMPALA-5031: null ptr errors in C calls in BE tests ...................................................................... Patch Set 1: (1 comment) http://gerrit.cloudera.org:8080/#/c/11545/1/be/src/udf/udf.cc File be/src/udf/udf.cc: http://gerrit.cloudera.org:8080/#/c/11545/1/be/src/udf/udf.cc@521 PS1, Line 521: std::copy(buf, buf + len, result.ptr); > I haven't checked, but it very well might not, or it might now but then sto I tried this out on godbolt and it results in two extra redundant comparisons but otherwise the same call to memcpy(): https://godbolt.org/z/pbiUpm So it would be good to confirm that this doesn't affect performance with a benchmark. I suspect not but who knows -- To view, visit http://gerrit.cloudera.org:8080/11545 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I317ccc99549744a26d65f3e07242079faad0355a Gerrit-Change-Number: 11545 Gerrit-PatchSet: 1 Gerrit-Owner: Jim Apple <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Jim Apple <[email protected]> Gerrit-Reviewer: Tim Armstrong <[email protected]> Gerrit-Comment-Date: Mon, 01 Oct 2018 19:22:04 +0000 Gerrit-HasComments: Yes
