hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jitendra Nath Pandey (JIRA)" <>
Subject [jira] [Commented] (HIVE-5018) Avoiding object instantiation in loops (issue 6)
Date Fri, 06 Sep 2013 18:41:52 GMT


Jitendra Nath Pandey commented on HIVE-5018:

Please try modifying your sample code to run 'out of loop declaration' first and then run
for 'in loop declaration'. You might see a different result. Compilers can do bunch of tricks
on a code like this, that makes it difficult to conclude anything.
> Avoiding object instantiation in loops (issue 6)
> ------------------------------------------------
>                 Key: HIVE-5018
>                 URL:
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Benjamin Jakobus
>            Assignee: Benjamin Jakobus
>            Priority: Minor
>             Fix For: 0.12.0
>         Attachments: HIVE-5018.1.patch.txt
> Object instantiation inside loops is very expensive. Where possible, object references
should be created outside the loop so that they can be reused.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message