You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "David Mollitor (Jira)" <ji...@apache.org> on 2020/06/09 14:16:01 UTC
[jira] [Commented] (HIVE-21719) Use Random.nextDouble instead of
Math.random
[ https://issues.apache.org/jira/browse/HIVE-21719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17129333#comment-17129333 ]
David Mollitor commented on HIVE-21719:
---------------------------------------
The PR has been closed because of it being stale.
I have to believe there is greater overhead with this patch since it instantiates a new Random object every time. If you would like to retry this patch, I can look at it, but please use {{ThreadLocalRandom}} to avoid the instantiation.
> Use Random.nextDouble instead of Math.random
> --------------------------------------------
>
> Key: HIVE-21719
> URL: https://issues.apache.org/jira/browse/HIVE-21719
> Project: Hive
> Issue Type: Improvement
> Reporter: bd2019us
> Priority: Trivial
> Attachments: HIVE-21719.patch
>
>
> Performance overhead from Math.random can be reduced by using Random.nextDouble instead.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)