mayuropensource opened a new pull request #7002:
URL: https://github.com/apache/arrow/pull/7002


   Hi,
   
   The current coalescing algorithm is a O(N^2) two pass algorithm (where N is 
number of ranges) (first implemented in 
https://issues.apache.org/jira/browse/ARROW-7995). In the first pass, the 
Coalesce() function finds the begin and end of a candidate range that can be 
coalesced. In the second, pass the CoalesceUntilLargeEnough() function goes 
over the ranges from begin to end and adds coalesced range to the result (out).
   
   The PR (https://issues.apache.org/jira/browse/ARROW-8543) is to convert the 
algorithm to an O(N) single pass algorithm that computes coalesced ranges while 
making the first pass over the ranges in the list. This algorithm is also 
shorter in lines of code and hence (hopefully) more maintainable in long term.
   
   Thanks,
   Mayur Srivastava
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to