[jira] [Created] (CARBONDATA-3489) Optimizing the performance of sorting

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (CARBONDATA-3489) Optimizing the performance of sorting

Akash R Nilugal (Jira)
Vikram Ahuja created CARBONDATA-3489:
----------------------------------------

             Summary: Optimizing the performance of sorting
                 Key: CARBONDATA-3489
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-3489
             Project: CarbonData
          Issue Type: Improvement
          Components: core
    Affects Versions: 1.6.1
            Reporter: Vikram Ahuja
             Fix For: 1.6.1


Optimizing the performance of sorting

Root cause: In case of sorting in the comparator classes(NewRowComparator, RawRowComparator, IntermediateSortTempRowComparator and  UnsafeRowComparator) a new SerializableComparator object is been created in the compare method everytime two objects are passed for comparison.

Solution: We can reduce the number of SerializeableComparator objects that are been created by storing the SerializeableComparators of primitive datatypes  in a map and getting it from the map instead of creating a new SerializeableComparator everytime.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)