Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338854 - Memory Improvement: Lazy initialize TreeObjectBuilder
Summary: Memory Improvement: Lazy initialize TreeObjectBuilder
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 334389
  Show dependency tree
 
Reported: 2011-03-03 15:53 EST by Blaise Doughan CLA
Modified: 2022-06-09 10:35 EDT (History)
1 user (show)

See Also:


Attachments
Core - Fix (28.64 KB, patch)
2011-03-03 16:07 EST, Blaise Doughan CLA
no flags Details | Diff
SDO - Fix (526 bytes, patch)
2011-03-03 16:07 EST, Blaise Doughan CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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