facebook/presto — pull request #1359 by martint (2014-06-04 18:04:56+00:00)
Title: Minor cleanup and (potential) optimization in compiler

Currently, the code generates calls to getCursor for every channel from 0 up to the
max channel referenced in filters/projections. With this change, the code now only
calls getCursor on channels that are actually needed for evaluation.