Bug 19871 - InternalPlatform.assertInitialized does a Policy.bind
Summary: InternalPlatform.assertInitialized does a Policy.bind
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 F3   Edit
Assignee: DJ Houghton CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2002-06-11 00:50 EDT by Nick Edgar CLA
Modified: 2002-06-11 17:31 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2002-06-11 00:50:26 EDT
Build 20020610

InternalPlatform.assertInitialized always calls Policy.bind.
This costs at least a dictionary lookup.

Among other places, InternalPlatform.assertInitialized is called by 
getAdapterManager(), which is called quite often.

Recommend calling Policy.bind only if needed.
Comment 1 DJ Houghton CLA 2002-06-11 11:40:00 EDT
Fix for 2.0
Comment 2 John Arthorne CLA 2002-06-11 17:31:54 EDT
Fixed and released.