Bug 316611 - [compiler][otre] Measure and avoid penalties due to unnecessary lifting
Summary: [compiler][otre] Measure and avoid penalties due to unnecessary lifting
Status: NEW
Alias: None
Product: Objectteams
Classification: Tools
Component: OTJ (show other bugs)
Version: 0.7   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-11 09:55 EDT by Stephan Herrmann CLA
Modified: 2010-06-11 09:56 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 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.).