Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » JDT AST analysis: performance costs or resolveBinding
JDT AST analysis: performance costs or resolveBinding [message #250864] Wed, 23 January 2008 08:22 Go to next message
Eclipse UserFriend
Hi,

When writing an ASTVisitor and running over AST nodes, many nodes have the
ability of resolving the bindings to actual types. In several cases, this
is something I may be able to do myself, for example, when using a class
which appears in the imports, I can resolve the name.

Naturally, working with resolveBinding is simpler to use. The question: at
what cost? Is there a performance issue here? Any other considerations I
should think about?

Thanks.
Zviki
Anyone? [message #251062 is a reply to message #250864] Tue, 29 January 2008 04:42 Go to previous messageGo to next message
Eclipse UserFriend
Still looking for insights...

Thanks.
Re: Anyone? [message #251069 is a reply to message #251062] Tue, 29 January 2008 07:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 4cs6fcg02.sneakemail.com

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig436F706B9DD5CFBCDC69AA27
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

zvikico schreef:
> Still looking for insights...

Hm, you could open a plastic bag and look in it?

What for, by the way?

H.
--=20
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html


--------------enig436F706B9DD5CFBCDC69AA27
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFHnxxTe+7xMGD3itQRAmsWAJ48GgAQ6PtF7cYrLyJfzwOKO2/+1QCf WndX
+Sp1oaGZPz/ECMFv6kOdKBs=
=AYdm
-----END PGP SIGNATURE-----

--------------enig436F706B9DD5CFBCDC69AA27--
Re: Anyone? [message #251073 is a reply to message #251069] Tue, 29 January 2008 07:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Hendrik,

Ouch. I try not to be mean even when questions are really stupid and
save being mean for when the question is mean. Probably you didn't see
the original question about the performance cost of resolveBinding.

I don't really know the answer to that original question but likely the
best approach is to measure it (or step through the code and get a sense
of the overhead that way). I imagine that resolving a binding could be
quite expensive and might require loading other compilation units, but I
don't really have a clue, so that's just a guess.


Hendrik Maryns wrote:
> zvikico schreef:
>> Still looking for insights...
>
> Hm, you could open a plastic bag and look in it?
>
> What for, by the way?
>
> H.
Re: Anyone? [message #251093 is a reply to message #251062] Tue, 29 January 2008 11:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

zvikico wrote:
> Still looking for insights...

Those of us reading this group have no idea to what you are referring.

To be effective when using newsgroups you must post follow-ups to the
same thread as the original question(s) and it is a good idea to always
quote at least part of the message to which you are replying.

Eric
Re: Anyone? [message #251097 is a reply to message #251093] Tue, 29 January 2008 13:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Eric,

My thunderbird reader show the message nested under the original one. I
guess for you it doesn't appear that way? I agree though that it's not
a good idea to change the subject line and in general the subject line
should always be a good summary of the issue, which the original was,
i.e., "JDT AST analysis: performance costs or resolveBinding", minor
typo aside.

Eric Rizzo wrote:
> zvikico wrote:
>> Still looking for insights...
>
> Those of us reading this group have no idea to what you are referring.
>
> To be effective when using newsgroups you must post follow-ups to the
> same thread as the original question(s) and it is a good idea to
> always quote at least part of the message to which you are replying.
>
> Eric
Re: Anyone? [message #251131 is a reply to message #251097] Wed, 30 January 2008 12:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Ed Merks wrote:
> Eric,
>
> My thunderbird reader show the message nested under the original one. I
> guess for you it doesn't appear that way?

I configure it to only show unread messages - otherwise I find it
unusable to see all the branches of stuff I've already read.
Also, those reading this on the web may not have such a nice interface.

Eric
Re: Anyone? [message #251133 is a reply to message #251131] Wed, 30 January 2008 12:22 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Eric,

I love the endless history myself. :-P I use "n" to scan the unread
things...


Eric Rizzo wrote:
> Ed Merks wrote:
>> Eric,
>>
>> My thunderbird reader show the message nested under the original
>> one. I guess for you it doesn't appear that way?
>
> I configure it to only show unread messages - otherwise I find it
> unusable to see all the branches of stuff I've already read.
> Also, those reading this on the web may not have such a nice interface.
>
> Eric
Previous Topic:Output dir under version control
Next Topic:Extending Java Launching
Goto Forum:
  


Current Time: Sat Apr 19 11:56:13 EDT 2025

Powered by FUDForum. Page generated in 0.02811 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top