You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Vikram Ahuja (JIRA)" <ji...@apache.org> on 2019/08/09 06:48:00 UTC

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

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)