[jira] [Updated] (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] [Updated] (CARBONDATA-3489) Optimizing the performance of sorting

Akash R Nilugal (Jira)

     [ https://issues.apache.org/jira/browse/CARBONDATA-3489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kunal Kapoor updated CARBONDATA-3489:
-------------------------------------
    Fix Version/s: 1.6.0

> 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
>            Priority: Minor
>             Fix For: 1.6.0, 1.6.1
>
>          Time Spent: 14.5h
>  Remaining Estimate: 0h
>
> 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
(v8.3.4#803005)