[ https://issues.apache.org/jira/browse/FELIX-6101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karl Pauls updated FELIX-6101: ------------------------------ Fix Version/s: framework-6.0.4 > Date.getTime() can be changed to System.currentTimeMillis() > ----------------------------------------------------------- > > Key: FELIX-6101 > URL: https://issues.apache.org/jira/browse/FELIX-6101 > Project: Felix > Issue Type: Bug > Components: Framework > Reporter: bd2019us > Assignee: Karl Pauls > Priority: Major > Fix For: framework-6.0.4 > > Attachments: 1.patch > > > Hello, > 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 (v8.3.2#803003)