Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338854

Summary: Memory Improvement: Lazy initialize TreeObjectBuilder
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.sdo-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 334389    
Attachments:
Description Flags
Core - Fix
none
SDO - Fix none

Description Blaise Doughan CLA 2011-03-03 15:53:50 EST
For large XML schemas not all the types will be used.  A performance optimization would be to leverage lazy loading at the TreeObjectBuilder level.
Comment 1 Blaise Doughan CLA 2011-03-03 16:07:14 EST
Created attachment 190312 [details]
Core - Fix
Comment 2 Blaise Doughan CLA 2011-03-03 16:07:39 EST
Created attachment 190313 [details]
SDO - Fix
Comment 3 Blaise Doughan CLA 2011-03-04 10:34:19 EST
Fix checked into 2.1.3 at rev:  9073

Code reviewed by:  Gordon Yorke

Changes:
- Added a property to XMLDescriptor called "isLazilyInitialized".  If this flag is true, then EclipseLink may lazily initialize the metadata.
- At this point TreeObjectBuilder is the only thing that is lazily initialized if this property is set.
- JAXB/OXM defaults to lazilyInitialized=false, and SDO defaults to lazilyInitialized=true
Comment 4 Blaise Doughan CLA 2011-03-04 12:35:44 EST
Fix checked into trunk at rev:  9074
Fix checked into 2.2.1 at rev:  9075
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:35:55 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink