You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Liya Fan (Jira)" <ji...@apache.org> on 2019/08/26 12:23:00 UTC

[jira] [Created] (ARROW-6355) [Java] Make range equal visitor reusable

Liya Fan created ARROW-6355:
-------------------------------

             Summary: [Java] Make range equal visitor reusable
                 Key: ARROW-6355
                 URL: https://issues.apache.org/jira/browse/ARROW-6355
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Java
            Reporter: Liya Fan
            Assignee: Liya Fan


According to the discussion in [https://github.com/apache/arrow/pull/4993#discussion_r316009165,] we often encountered this scenario: we compare values repeatedly. The comparisons differs only in the parameters (vector to compare, start index, etc).

 

According to the current API, we have to create a new RangeEqualVisitor object each time the comparison is performed. This leads to non-trivial performance overhead.

 

To address this problem, we make the RangeEqualVisitor reusable, and allow the client to change parameters of an existing visitor. 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)