Alexey Serbin has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/22805


Change subject: [common] ColumnPredicate clean-up
......................................................................

[common] ColumnPredicate clean-up

Since I'm planning to update the code in common/column_predicate.cc
in follow-up changelists, in this separate patch I cleaned up
the code a bit:
  * use 'if constexpr' where possible for cleaner code
  * clean up CHECK/DCHECK assertions
  * make it C++ style guide-compliant
  * address other minor issues reported by linters

I verified that the new code's benchmark numbers didn't degrade
by running and comparing output of
  KUDU_ALLOW_SLOW_TESTS=1 ./bin/column_predicate-test

Specifically, by running NullPredicateBenchmark.TestIsNotNull multiple
times before and after this patch at the same machine, I observed better
numbers in average, with typical numbers like below:

Before:
  int32  NOT NULL   (c IS NOT NULL) 91937.5M evals/sec     0.03 cycles/eval
  int32  NULL       (c IS NOT NULL) 93090.9M evals/sec     0.03 cycles/eval
    NullPredicateBenchmark.TestIsNotNull (23 ms)

After:
  int32  NOT NULL   (c IS NOT NULL) 104682.1M evals/sec    0.02 cycles/eval
  int32  NULL       (c IS NOT NULL) 114375.1M evals/sec    0.02 cycles/eval
    NullPredicateBenchmark.TestIsNotNull (20 ms)

This patch doesn't have any functional modifications.

Change-Id: I5d238a86d301b09247d8ed1d7deeb738eb20b11f
---
M src/kudu/common/column_predicate.cc
1 file changed, 97 insertions(+), 102 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/05/22805/1
--
To view, visit http://gerrit.cloudera.org:8080/22805
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5d238a86d301b09247d8ed1d7deeb738eb20b11f
Gerrit-Change-Number: 22805
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>

Reply via email to