Bug 102734 - [1.5][compiler] Method lookup improvements
Summary: [1.5][compiler] Method lookup improvements
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-05 10:39 EDT by Philipe Mulet CLA
Modified: 2009-08-30 02:18 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 Philipe Mulet CLA 2005-07-05 10:39:56 EDT
3.1

Lookups could be using caches (receiverType+argTypes).
Methods could be linked to their overriden method (if any).
Comment 1 Kent Johnson CLA 2006-02-24 16:18:57 EST
Some stats to keep in mind (using standard source libs):

- less than 1 in 5 implicit message sends need lookups (81% are exact matches)

- same with non-implicit messages sends (82% are exact matches)

- 36% of message sends are implicit


So less than 1 in 5 message sends would benefit from any kind of caching
Comment 2 Philipe Mulet CLA 2006-02-27 06:17:33 EST
Agreed. Maybe it should only do caching on generic method invocations, since these are quite expensive to compute.

Also it would give us identity for generic method binding invocations, which we have as a feature request (for DOM AST side).
Comment 3 Philipe Mulet CLA 2006-03-28 15:29:29 EST
I sorted fields and methods, to enable binary searching them.
Comment 4 Philipe Mulet CLA 2006-04-18 07:06:23 EDT
Canonicalized generic method bindings.
Still inference is required, and could be optimized.
Comment 5 Philipe Mulet CLA 2006-04-26 11:18:13 EDT
post 3.2
Comment 6 Denis Roy CLA 2009-08-30 02:18:52 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.