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

Bug 337138

Summary: Memory Improvement: Set initial size of Maps and Arrays whenever possible
Product: z_Archived Reporter: David McCann <david.mccann>
Component: EclipselinkAssignee: David McCann <david.mccann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed changes to SDOTypeHelperDelegate none

Description David McCann CLA 2011-02-14 11:06:43 EST
Created attachment 188909 [details]
Proposed changes to SDOTypeHelperDelegate

In certain cases we know the size of a given Map/Array and should initialize the structure to that size.

Some examples in SDOTypeHelperDelegate are:
    private static final Map sdoTypeForSimpleJavaType = new HashMap(22);
    private final Map sdoToXSDTypes = new HashMap(34);
    private final Map xsdToSDOType = new HashMap(46);

Other SDO classes should be checked as well.
Comment 1 David McCann CLA 2011-02-18 13:26:33 EST
2.1.3 Fix checked in
Reviewed by:  blaise.doughan@oracle.com
Tests: all unit tests pass as expected
Revision:  8994
Comment 2 David McCann CLA 2011-02-18 13:34:48 EST
2.3 Fix checked in
Reviewed by:  blaise.doughan@oracle.com
Tests: all unit tests pass as expected
Revision:  8995
Comment 3 David McCann CLA 2011-02-18 15:56:42 EST
The following bug has been entered for the corresponding 2.2.1 fix:
Bug 337614
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:09:31 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:13:59 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink