systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bd2019us (JIRA)" <>
Subject [jira] [Created] (SYSTEMML-2526) Date.getTime() can be changed to System.currentTimeMillis()
Date Fri, 12 Apr 2019 15:38:00 GMT
bd2019us created SYSTEMML-2526:

             Summary: Date.getTime() can be changed to System.currentTimeMillis()
                 Key: SYSTEMML-2526
             Project: SystemML
          Issue Type: Bug
            Reporter: bd2019us

src/main/java/org/apache/sysml/api/mlcontext/ 337
src/main/java/org/apache/sysml/api/mlcontext/ 1258

I found that System.currentTimeMillis() can be used here instead of new Date.getTime().
Since new Date() is a thin wrapper of light method System.currentTimeMillis(). The performance
will be greatly damaged if it is invoked too much times.
According to my local testing at the same environment, System.currentTimeMillis() can achieve
a speedup to 5 times (435 ms vs 2073 ms), when these two methods are invoked 5,000,000 times.

This message was sent by Atlassian JIRA

View raw message