Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-3489

Optimizing the performance of sorting

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.6.1
    • 1.6.0, 1.6.1
    • core
    • None

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            vikramahuja_ Vikram Ahuja
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 14h 40m
                14h 40m

                Slack

                  Issue deployment