Bug 532364 - [compiler] Use constant for empty Annotation arrays
Summary: [compiler] Use constant for empty Annotation arrays
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.8   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-12 17:00 EDT by Karsten Thoms CLA
Modified: 2018-10-22 11:29 EDT (History)
1 user (show)

See Also:
karsten.thoms: review? (manoj.palat)


Attachments
Screenshot: Profiler (680.04 KB, image/png)
2018-03-12 17:00 EDT, Karsten Thoms CLA
no flags Details
Screenshot: Current workspace empty JDT arrays (262.45 KB, image/png)
2018-10-22 11:29 EDT, Karsten Thoms CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karsten Thoms CLA 2018-03-12 17:00:55 EDT
Created attachment 273091 [details]
Screenshot: Profiler

Memory consumption can be reduced when AST instances use an empty array constant when setting empty values.

This was the top entry in a memory snapshot for category zero-length array duplicates, see screenshot.
Comment 1 Karsten Thoms CLA 2018-10-22 11:29:01 EDT
Created attachment 276347 [details]
Screenshot: Current workspace empty JDT arrays