You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Paul Rogers (JIRA)" <ji...@apache.org> on 2016/08/01 04:20:20 UTC

[jira] [Created] (DRILL-4817) Eliminate redundant call to zeroVectors in FilterRecordBatch

Paul Rogers created DRILL-4817:
----------------------------------

             Summary: Eliminate redundant call to zeroVectors in FilterRecordBatch
                 Key: DRILL-4817
                 URL: https://issues.apache.org/jira/browse/DRILL-4817
             Project: Apache Drill
          Issue Type: Improvement
          Components: Execution - Flow
    Affects Versions: 1.7.0
            Reporter: Paul Rogers
            Priority: Minor


Consider the FilterRecordBatch class. This class derives from AbstractSingleRecordBatch (ASRB). ASRB.innerNext( ) has the following code:

      container.zeroVectors();
      IterOutcome out = doWork();

Now, consider FilterRecordBatch.doWork( ):

    protected IterOutcome doWork() {
      container.zeroVectors();
      ...

Notice that the net effect is to zero the vectors twice, spinning the CPU unnecessarily.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)