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

Bug 316611

Summary: [compiler][otre] Measure and avoid penalties due to unnecessary lifting
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTJAssignee: Project Inbox <objectteams.otj-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 0.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Stephan Herrmann CLA 2010-06-11 09:55:15 EDT
If a role does not have any state and if role identity is not used
(like for comparing with each other, as key in a map etc.)
we could avoid lifting to that role altogether.

However, before implementing crude optimizations under the covers
we should do some measuring to estimate the possible performance gains.

See http://trac.objectteams.org/ot/ticket/150 for an example discussion).

Also http://www.eclipse.org/forums/index.php?t=msg&th=162654&start=0&
discusses similar optimizations.

It should also be decided if annotations should be used to denote roles
where state and identity is irrelevant (e.g., @TransientRole etc.).