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 58483 - Less debug information in build product
Summary: Less debug information in build product
Status: RESOLVED FIXED
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: rnovak
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2005-05-02 12:57 UTC by _ rkubacki
Modified: 2005-09-05 10:06 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2005-05-02 12:57:25 UTC
The testing show that we can reduce memory footprint if we compile with smaller
amount of debug information. As we do not want to loose all debugging data it
seems acceptable to add only 'source,lines' options and avoid generating infos
for vars. 

This reduces size of compiled classes by 15-18% resulting in smaller size of
netbeans so we have smaller VSZ of process. Then we have smaller RSS when
classes are loaded as they are smaller (and less I/O) together with better
utilization of PermGen (I saw 1.5MB saving with NB dev build running on JDK
1.5.0u2 with some trivial projects + Java editor before and after build).

The idea is to produce official daily build with this limited information and
have a default config used for build from sources generating full debug info so
that developers can debug NB without problem.
Comment 1 _ rkubacki 2005-05-04 10:09:43 UTC
Passing to Michal who agreed to implement it in a way suggested by Jesse - full
debuginfos for source builds, only source,lines in published builds. Thanks.
Comment 2 Michal Zlamal 2005-05-04 12:47:49 UTC
The support for this has been added to the build system. NB production build 
system will altered soon.

Checking in common.xml;
/cvs/nbbuild/templates/common.xml,v  <--  common.xml
new revision: 1.5; previous revision: 1.4
done
Checking in projectized.xml;
/cvs/nbbuild/templates/projectized.xml,v  <--  projectized.xml
new revision: 1.50; previous revision: 1.49
done

reassigning to proper person. Rudo please change the production build.

thanks

-M
Comment 3 Jesse Glick 2005-05-04 15:49:10 UTC
Adding to Michal's commit:

committed   * Up-To-Date  1.3         apisupport/harness/README
committed   * Up-To-Date  1.3         apisupport/harness/harness-build.xml
Comment 4 _ rkubacki 2005-05-09 15:11:39 UTC
daily builds since May 4 are smaller. du -sk reports this:
108528  nb200505031800
100268  nb200505041800
100276  nb200505081800