Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-5009 Fix minor optimization issues
  3. HIVE-5018

Avoiding object instantiation in loops (issue 6)

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None
    • Minor performance improvements: I ran arithmetic operations on a small dataset consisting of 30,000,000 records (standalone mode) and the patched version was 2.6% faster than the unpatched version.

    Description

      Object instantiation inside loops is very expensive. Where possible, object references should be created outside the loop so that they can be reused.

      Attachments

        1. HIVE-5018.1.patch.txt
          153 kB
          Benjamin Jakobus

        Activity

          People

            benjamin.jakobus Benjamin Jakobus
            benjamin.jakobus Benjamin Jakobus
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: