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)

Reply via email to