Skip to content

Most efficient way to process annotations #516

@laeubi

Description

@laeubi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions