You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Kunal Kapoor (Jira)" <ji...@apache.org> on 2019/09/19 08:33:00 UTC
[jira] [Resolved] (CARBONDATA-3489) Optimizing the performance of
sorting
[ https://issues.apache.org/jira/browse/CARBONDATA-3489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kunal Kapoor resolved CARBONDATA-3489.
--------------------------------------
Resolution: Fixed
> 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.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)