Community
Participate
Working Groups
As posted in http://www.eclipse.org/forums/index.php?t=msg&th=205390 we should consider a possible optimization that can be achieved by simply avoiding use of the internal cache for specific role classes where state and role identity are irrelevant.
Created attachment 190886 [details] proposed implementation This patch implements the instantiation policy ALWAYS. We already prepare for supporting more instantiation policies, but only ONDEMAND and ALWAYS are currently implemented. I might mention that for ALWAYS we still generate the role cache, which is a tiny bit of waste, but not generating it would require more changes to ensure no-one attempts to access the inexistent cache. The patch also contains the proposed changes to the OTJLD.
Marking as fixed after I could observe >20% speedup in the jdtnullity plug-in. If other levels beside ONDEMAND and ALWAYS are desired I will open separate bugs.
Verified for 0.8M6 (sic) using build 201104300913 note 1: this was already shipped with M6 but never verified at that time note 2: the speed-ups may be lower than reported in comment 2, today (on a different machine) I observed approx 5-10% speed-up