GithubHelp home page GithubHelp logo

Comments (13)

laeubi avatar laeubi commented on June 8, 2024

R8 also defines the org.osgi:org.osgi.service.feature annotations:

from eclipse.pde.

iloveeclipse avatar iloveeclipse commented on June 8, 2024

Note: PR #234 causes a huge regression for compiling workspaces with plugins,
I'm mostly unable to work now using I20220802-1800 build because compiler needs ages now compiling a single bundle.
Compilation of entire workspace with lot of SDK bundles takes ~10 minutes instead of 1-2.

To reproduce: import jdt.core bundle in the workspace and do a clean build. It takes ages.

from eclipse.pde.

iloveeclipse avatar iloveeclipse commented on June 8, 2024

Looking on stack traces I assume it is org.eclipse.pde.internal.ui.annotations.OSGiAnnotationsCompilationParticipant that causes trouble. Consider to either disable that until performance issues are identified or make optional via preference, or fix performance issue.

Since I'm using nightly SDK builds for my daily work ("eat my own dog food"), I can't continue to do this anymore since I20220802-1800, so if there will be no real fix soon, I plan to disable new compilation participant today (there are no tests for that one anyway).

from eclipse.pde.

laeubi avatar laeubi commented on June 8, 2024

@iloveeclipse I'll take a look at this, as you are more familiar with JDT, is there anything "wrong" in the usage or anything that could be performed better here? I assume it is common for code to inspect the Java-Files so I'm a bit astonished that this is causing such slow down?

from eclipse.pde.

iloveeclipse avatar iloveeclipse commented on June 8, 2024

@laeubi : sorry, I have no time to work on this.

Briefly looking on the code I assume isActive() doesn't work, as it seem to slowdown compilation of ALL projects, independently if there is any annotation setup (I assumed there is no changes in JDT so far to use new annotations).

Beside this, I'm not expert in JDT model / AST parsing, but I assume creating AST for every single file is might be the problem here.

May be @cdietrich has some hints here how one could speed that up:

from eclipse.pde.

laeubi avatar laeubi commented on June 8, 2024

No problem I think I found a way to fix this for now, just need to get my SDK working again as I crashed it yesterday by merging the repositories and now Eclipse don't start up anymore :-\

from eclipse.pde.

laeubi avatar laeubi commented on June 8, 2024

Briefly looking on the code I assume isActive() doesn't work, as it seem to slowdown compilation of ALL projects, independently if there is any annotation setup (I assumed there is no changes in JDT so far to use new annotations).

Good point, this is maybe useless and incurred a higher performance penalty than simply assume if its a PDE project this should be applied, I have copied that from the DS Annotations processor but really wonder if it is good for anything:

  • Lets assume the annotation could be found, then i still need to check if the annotation is present
  • If not, then it can't be used, and processing will not do anything anyways ...

from eclipse.pde.

iloveeclipse avatar iloveeclipse commented on June 8, 2024

@laeubi : please also consider to add a preference to turn this feature off, at least as long as it is in experimental state.

BTW, it would be nice if there would be explanation what actually the future is (from the user point of view), because #234 doesn't say anything concrete.

from eclipse.pde.

laeubi avatar laeubi commented on June 8, 2024

I'll try to explain this a bit more detail in the N&N entry, but first this must be usable by the user :-D

from eclipse.pde.

laeubi avatar laeubi commented on June 8, 2024

The metatype annotations should be supported as well, this requires

as a perquisite.

from eclipse.pde.

AlBundy33 avatar AlBundy33 commented on June 8, 2024

is it already possible to disable this feature?
this still seems to impact the build time
-> in releases and not only i-builds

from eclipse.pde.

laeubi avatar laeubi commented on June 8, 2024

is it already possible to disable this feature? this still seems to impact the build time

It is not possible to disable at the moment.

from eclipse.pde.

AlBundy33 avatar AlBundy33 commented on June 8, 2024

what do you think about a temporary solution to disable this feature e.g. via system-property?
so we could test this on our machines

from eclipse.pde.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.