Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 100601 - Common Base Event implementation performance/memory improvements.
Summary: Common Base Event implementation performance/memory improvements.
Status: CLOSED DUPLICATE of bug 112371
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Paul Slauenwhite CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-17 11:56 EDT by Paul Slauenwhite CLA
Modified: 2016-05-05 10:49 EDT (History)
0 users

See Also:


Attachments
EventHelpersPerformancePatch.txt (6.92 KB, text/plain)
2005-11-17 12:13 EST, Paul Slauenwhite CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Slauenwhite CLA 2005-06-17 11:56:53 EDT
Performance/memory improvements for the native Common Base Event implementation.

Based on discussions with an internal IBM group on using native Common Base 
Event implementation on constrained devices (e.g. Palm, PocketPC, etc.), the 
code should be thoroughly reviewed for possible performance/memory improvements.
Comment 1 Paul Slauenwhite CLA 2005-07-06 10:41:00 EDT
For example, all setters persist the old value before setting the new value for 
no reason.  For instance,

char* oldLocalInstanceId = commonBaseEvent->_localInstanceId;
Comment 2 Paul Slauenwhite CLA 2005-07-06 10:44:02 EDT
Part of this defect should include a thorough review of the native Common Base 
Event implementation with special focus on event de/serialization, factory and 
content handling (e.g. deep/shallow copy).
Comment 3 Paul Slauenwhite CLA 2005-07-18 13:52:14 EDT
This work should extend to both Java (EMF and non-EMF) Common Base Event 
implementations.  As such, changing summary accordingly.
Comment 4 Paul Slauenwhite CLA 2005-09-15 10:37:16 EDT
P2 Highly desirable and planned for this release, but not stop ship 
normal A problem making a function difficult to use but no special work around 
is required
Comment 5 Paul Slauenwhite CLA 2005-10-13 22:06:32 EDT
One potential performance improvement (analysis required) is to store the 
template Common Base Event as an XML fragment/document in the 
org.eclipse.hyades.logging.events.cbe.impl.TemplateContentHandlerImpl.  When 
the completeEvent(CommonBaseEvent) method is invoked, the Common Base Event XML 
fragment/document would be de-serialized into the parameter Common Base Event.  
However, the org.eclipse.hyades.logging.events.cbe.util.SAXEventHandler would 
need to be changed to allow callers to provide a parameter Common Base Event 
and the SAXEventHandler would need to respect the existing properties in the 
parameter Common Base Event.
Comment 6 Paul Slauenwhite CLA 2005-10-18 15:50:23 EDT
Sizing (PW):
 
Design:        1 
Code:          2 
Test:          2 
Documentation: 0.5
------------------
Total:         5.5
Comment 7 Paul Slauenwhite CLA 2005-11-17 12:13:23 EST
Created attachment 30157 [details]
EventHelpersPerformancePatch.txt
Comment 8 Eric Labadie CLA 2005-11-18 10:45:42 EST
This defect should be a duplicate of 112371.
Comment 9 Paul Slauenwhite CLA 2005-11-18 10:46:08 EST

*** This bug has been marked as a duplicate of 112371 ***

*** This bug has been marked as a duplicate of 112371 ***
Comment 10 Paul Slauenwhite CLA 2005-11-18 10:46:25 EST
Closing.