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 65376 - [50cat] Building a free-form project in NB 5.0 takes much longer than in NB 4.1
Summary: [50cat] Building a free-form project in NB 5.0 takes much longer than in NB 4.1
Status: RESOLVED INVALID
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE, REGRESSION
Depends on:
Blocks:
 
Reported: 2005-09-29 16:26 UTC by misterm
Modified: 2005-11-03 04:40 UTC (History)
1 user (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 misterm 2005-09-29 16:26:12 UTC
[ BUILD # : 5.0 beta ]
[ JDK VERSION : 1.4.2_xx ]

Building a large project (900 files) using a custom Ant script that contains a lot of tasks that fork the VM takes around 40-50% more than in NB 4.1. It used to take 8-9 minutes and now takes 12 minutes.
Comment 1 Antonin Nebuzelsky 2005-09-29 20:57:16 UTC
Not an enhancement, this is a defect!
Thanks for reporting that!
Comment 2 Jesse Glick 2005-09-30 02:52:43 UTC
I don't think anything of significance has changed in the Ant module. Could be
due to changes in AntLogger impls. Any profile data for the hotspots?

Have you tried using the same version of Ant (e.g. 1.6.5) in both cases to rule
that out as a cause?
Comment 3 Jesse Glick 2005-09-30 02:53:13 UTC
Can hardly set a target milestone without information to reproduce or profile data.
Comment 4 misterm 2005-09-30 16:04:04 UTC
>> ------- Additional comments from jglick Fri Sep 30 01:52:43 +0000 2005 -----

>> I don't think anything of significance has changed in the Ant module. Could 
>> be due to changes in AntLogger impls. Any profile data for the hotspots?

How can I profile the NetBeans build process?

>> Have you tried using the same version of Ant (e.g. 1.6.5) in both cases to 
>> rule that out as a cause?

Using Ant 1.6.5 from the command line takesa round 8-9 minutes. It definitely 
has something to do with NB (maybe there are more threads now or threads with a 
higher priority?).

BTW, do Ant builds run in a thread with a higher priority? I think they 
should :-)
Comment 5 Jesse Glick 2005-10-03 23:19:55 UTC
"How can I profile the NetBeans build process?" - well, with a profiler. Someone
will have to do it, maybe me if I can find the time. More critical now is a test
case which is known to demonstrate the problem reliably, as well as any info
about whether the problem is confined to Windows or is cross-platform.

Ant builds do not run with a special priority. If anything, a *lower* priority
would be appropriate (so that the rest of the UI is responsive while a long
build is running). Note that thread priorities do not reliably do much, e.g. on
Linux they are pretty useless.
Comment 6 Jesse Glick 2005-10-24 18:22:43 UTC
Still awaiting steps to reproduce. Will close shortly if none provided.
Comment 7 Jesse Glick 2005-11-03 04:40:56 UTC
If you can reproduce, please reopen with a test case of some sort.