Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337138 - Memory Improvement: Set initial size of Maps and Arrays whenever possible
Summary: Memory Improvement: Set initial size of Maps and Arrays whenever possible
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: David McCann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-14 11:06 EST by David McCann CLA
Modified: 2022-06-09 10:13 EDT (History)
0 users

See Also:


Attachments
Proposed changes to SDOTypeHelperDelegate (1.01 KB, patch)
2011-02-14 11:06 EST, David McCann CLA
no flags Details | Diff

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