This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 92436 - Slow response when build/run is invoked
Summary: Slow response when build/run is invoked
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2007-01-12 13:40 UTC by _ rkubacki
Modified: 2007-02-19 18:15 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2007-01-12 13:40:05 UTC
Mikael Grev wrote at http://www.javalobby.org/java/forums/t88264.html:

'When hitting build/run it takes a few seconds (2-3) before anything happens.
Just a little to long and I have started an application twice more than once.
IDEA immediately shows a progress when you hit the run shortcut key. It takes as
long for the app to start but it feels snappier. '

I think we can use minimal initial delay for progress handle associated these
actions as we know that it is likely that they will last couple of seconds.
Comment 1 Milos Kleint 2007-01-16 09:25:32 UTC
probably an issue in ant module
Either you are creating the progress bar too late or the delay is caused by the
initial delay of the progress handle.
or both of these combined.
you can easily set the initial delay to zero or a smaller number than the
default (cca 1 second) by calling ProgressHandle.setInitialDelay() method
Comment 2 Jesse Glick 2007-01-24 13:53:26 UTC
Checking in ant/src/org/apache/tools/ant/module/run/TargetExecutor.java;
/shared/data/ccvs/repository/ant/src/org/apache/tools/ant/module/run/TargetExecutor.java,v
 <--  TargetExecutor.java
new revision: 1.68; previous revision: 1.67
done
Comment 3 _ rkubacki 2007-02-19 13:10:20 UTC
/shared/data/ccvs/repository/ant/src/org/apache/tools/ant/module/run/TargetExecutor.java,v
 <--  TargetExecutor.java
new revision: 1.69; previous revision: 1.68

according to log message setInitialDelay() should be called before start()
Comment 4 Jesse Glick 2007-02-19 18:15:40 UTC
Thanks for adjustment; I never noticed any warnings in the log about this.