-
Notifications
You must be signed in to change notification settings - Fork 163
Description
Currently PDE uses a OSGiAnnotationsCompilationParticipant(the same technique is used in DSAnnotationCompilationParticipant) to find out if an annotation is present in the compiled class and then analyze it to possibly generate some code.
This has add a noticeable performance overhead most likely because of the AST creation, and even if we could optimize the current processing probably here (it is currently rather straight forward than optimized for performance), I wonder if there is maybe a better way.
What bugs me a bit here is that obviously JDT already knows that there ARE annotations present, but it does not pass the data in a way I can access e.g. what annotations are present (what would make it much more easier to decide if there is actually something to do, but probably this is because it is actually easy and performant to gather this data anyway?