Bug 223094 - Use List.nil() where possible
Use List.nil() where possible
Status: RESOLVED FIXED
Product: java
Classification: Unclassified
Component: Compiler
7.3
All All
: P3 (vote)
: 7.3
Assigned To: Dusan Balek
issues@java
: PERFORMANCE
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-01 07:37 UTC by Tomas Hurka
Modified: 2012-12-14 02:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2012-12-01 07:37:51 UTC
It looks like there are several cases, where List.nil() is not used. Example is com.sun.tools.javac.tree.JCTree$JCMethodInvocation.args list. This can save some memory especially in cases, where a lot of sources are parsed.
Comment 1 Tomas Hurka 2012-12-01 09:10:45 UTC
It looks like ListBuffer is creating this empty List instances.
Comment 3 Quality Engineering 2012-12-14 02:42:29 UTC
Integrated into 'main-golden', will be available in build *201212140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/65fac4a3f53a
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #223094: updating nb-javac, to incorporate ListBuffer optimization


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo