[
https://issues.apache.org/jira/browse/ATLAS-3134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
bd2019us updated ATLAS-3134:
----------------------------
Summary: Change Date.getTime() to System.currentTimeMillis() to improve
performance (was: Change java.util.Date.getTime() to
java.lang.System.currentTimeMillis() to improve performance)
> Change Date.getTime() to System.currentTimeMillis() to improve performance
> --------------------------------------------------------------------------
>
> Key: ATLAS-3134
> URL: https://issues.apache.org/jira/browse/ATLAS-3134
> Project: Atlas
> Issue Type: Bug
> Reporter: bd2019us
> Priority: Major
> Attachments: 1.patch
>
>
> {color:#333333}Location:
> repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasTypeDefGraphStoreV2.java:527{color}
> {color:#333333}new Date() is just a thin wrapper around
> System.currentTimeMillis(). It will improve performance by using
> System.currentTimeMillis() which can get the same current time stamp with
> Date.getTime(). For example, I have run both of them for 5,000,000 times and
> the running time is 2073ms vs 435ms{color}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)