[jira] [Updated] (NETBEANS-2408) Date.getTime() can be changed to System.currentTimeMillis()
[ https://issues.apache.org/jira/browse/NETBEANS-2408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] bd2019us updated NETBEANS-2408: --- Attachment: 1.patch > Date.getTime() can be changed to System.currentTimeMillis() > --- > > Key: NETBEANS-2408 > URL: https://issues.apache.org/jira/browse/NETBEANS-2408 > Project: NetBeans > Issue Type: Bug >Reporter: bd2019us >Priority: Major > Labels: pull-request-available > Attachments: 1.patch > > Time Spent: 10m > Remaining Estimate: 0h > > 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 (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-2408) Date.getTime() can be changed to System.currentTimeMillis()
[ https://issues.apache.org/jira/browse/NETBEANS-2408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] bd2019us updated NETBEANS-2408: --- Description: 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. was: enterprise/j2ee.clientproject/src/org/netbeans/modules/j2ee/clientproject/AppClientProvider.java 413 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. > Date.getTime() can be changed to System.currentTimeMillis() > --- > > Key: NETBEANS-2408 > URL: https://issues.apache.org/jira/browse/NETBEANS-2408 > Project: NetBeans > Issue Type: Bug >Reporter: bd2019us >Priority: Major > > 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 (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-2408) Date.getTime() can be changed to System.currentTimeMillis()
bd2019us created NETBEANS-2408: -- Summary: Date.getTime() can be changed to System.currentTimeMillis() Key: NETBEANS-2408 URL: https://issues.apache.org/jira/browse/NETBEANS-2408 Project: NetBeans Issue Type: Bug Reporter: bd2019us enterprise/j2ee.clientproject/src/org/netbeans/modules/j2ee/clientproject/AppClientProvider.java 413 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 (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-2327) File.mkdir() may fail and cause crash.
[ https://issues.apache.org/jira/browse/NETBEANS-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] bd2019us updated NETBEANS-2327: --- Issue Type: Bug (was: Improvement) > File.mkdir() may fail and cause crash. > -- > > Key: NETBEANS-2327 > URL: https://issues.apache.org/jira/browse/NETBEANS-2327 > Project: NetBeans > Issue Type: Bug >Reporter: bd2019us >Priority: Major > Labels: patch > Attachments: 1.patch > > Time Spent: 10m > Remaining Estimate: 0h > > Locations: > (1) > java/performance/src/org/netbeans/modules/performance/utilities/CommonUtilities.java:282 > (2) > ide/subversion/src/org/netbeans/modules/subversion/ui/checkout/CheckoutAction.java:181 > The File.mkdir() method may cause program crash if the parent directory does > not exist. The ensure safety, the File.mkdirs() method should be used, which > won't cause extra performance overhead. Besides, this change is easy to > validate. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-2327) File.mkdir() may fail and cause crash.
[ https://issues.apache.org/jira/browse/NETBEANS-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] bd2019us updated NETBEANS-2327: --- Labels: patch (was: pull-request-available) > File.mkdir() may fail and cause crash. > -- > > Key: NETBEANS-2327 > URL: https://issues.apache.org/jira/browse/NETBEANS-2327 > Project: NetBeans > Issue Type: Improvement >Reporter: bd2019us >Priority: Major > Labels: patch > Attachments: 1.patch > > Time Spent: 10m > Remaining Estimate: 0h > > Locations: > (1) > java/performance/src/org/netbeans/modules/performance/utilities/CommonUtilities.java:282 > (2) > ide/subversion/src/org/netbeans/modules/subversion/ui/checkout/CheckoutAction.java:181 > The File.mkdir() method may cause program crash if the parent directory does > not exist. The ensure safety, the File.mkdirs() method should be used, which > won't cause extra performance overhead. Besides, this change is easy to > validate. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-2327) File.mkdir() may fail and cause crash.
[ https://issues.apache.org/jira/browse/NETBEANS-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] bd2019us updated NETBEANS-2327: --- Attachment: 1.patch > File.mkdir() may fail and cause crash. > -- > > Key: NETBEANS-2327 > URL: https://issues.apache.org/jira/browse/NETBEANS-2327 > Project: NetBeans > Issue Type: Improvement >Reporter: bd2019us >Priority: Major > Labels: pull-request-available > Attachments: 1.patch > > Time Spent: 10m > Remaining Estimate: 0h > > Locations: > (1) > java/performance/src/org/netbeans/modules/performance/utilities/CommonUtilities.java:282 > (2) > ide/subversion/src/org/netbeans/modules/subversion/ui/checkout/CheckoutAction.java:181 > The File.mkdir() method may cause program crash if the parent directory does > not exist. The ensure safety, the File.mkdirs() method should be used, which > won't cause extra performance overhead. Besides, this change is easy to > validate. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-2327) File.mkdir() may fail and cause crash.
[ https://issues.apache.org/jira/browse/NETBEANS-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] bd2019us updated NETBEANS-2327: --- Issue Type: Improvement (was: Bug) > File.mkdir() may fail and cause crash. > -- > > Key: NETBEANS-2327 > URL: https://issues.apache.org/jira/browse/NETBEANS-2327 > Project: NetBeans > Issue Type: Improvement >Reporter: bd2019us >Priority: Major > > Locations: > (1) > java/performance/src/org/netbeans/modules/performance/utilities/CommonUtilities.java:282 > (2) > ide/subversion/src/org/netbeans/modules/subversion/ui/checkout/CheckoutAction.java:181 > The File.mkdir() method may cause program crash if the parent directory does > not exist. The ensure safety, the File.mkdirs() method should be used, which > won't cause extra performance overhead. Besides, this change is easy to > validate. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-2327) File.mkdir() may fail and cause crash.
bd2019us created NETBEANS-2327: -- Summary: File.mkdir() may fail and cause crash. Key: NETBEANS-2327 URL: https://issues.apache.org/jira/browse/NETBEANS-2327 Project: NetBeans Issue Type: Bug Reporter: bd2019us Locations: (1) java/performance/src/org/netbeans/modules/performance/utilities/CommonUtilities.java:282 (2) ide/subversion/src/org/netbeans/modules/subversion/ui/checkout/CheckoutAction.java:181 The File.mkdir() method may cause program crash if the parent directory does not exist. The ensure safety, the File.mkdirs() method should be used, which won't cause extra performance overhead. Besides, this change is easy to validate. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists