Giter Club home page Giter Club logo

Comments (7)

bcorso avatar bcorso commented on June 9, 2024 2

Thanks for posting your findings @trevjonez!

I can't say I'm too surprised by this since we've had years to optimize for Javac but haven't really done any optimization for KSP yet (so far we've only been focused on correctness).

I can take a look through the flame charts and see if anything sticks out.

from dagger.

trevjonez avatar trevjonez commented on June 9, 2024 2

I am fairly certain with the --rurun flag these should be effectively the same as a clean run of the ksp/kapt tasks. I did it that way to try and get the flame chart to have as little extra noise as possible given the tracing is picking up everything in gradle too.

That said I'll play with the scenarios a bit more tomorrow and setup clean + incremental just to be sure.

from dagger.

bcorso avatar bcorso commented on June 9, 2024

One thing I noticed is that the KAPT flame chart looks like there's incremental processing going on (IncrementalProcessor.process(...)).

It might help to first compare both of them using a clean build with no incremental processing. That way we can rule out if the regression only occurs for incremental processing or also in clean builds.

from dagger.

trevjonez avatar trevjonez commented on June 9, 2024

I still owe you some repro projects but I did end up rerunning my out of process benchmarks with the latest KSP (1.0.16) and the time is at least consistent now so the time balloon on 1.9.21-1.0.15 was caused by the memory leak in KSP.

from dagger.

bcorso avatar bcorso commented on June 9, 2024

@trevjonez just to clarify, you're seeing the regression in KSP build times are gone with KSP 1.0.16, meaning it's about the same as your build times with Javac now?

from dagger.

trevjonez avatar trevjonez commented on June 9, 2024

No it still is a big regression from KAPT. but initially it would take like 15 minutes on a clean KSP build then second run on hot daemons would be 30+ and usually OOM crash out before a third run could finish. It was an obvious indication of a memory leak but someone else reported it to KSP and they fixed leak that so now we should be able to get more accurate timing info for the dagger processor optimization.

from dagger.

bcorso avatar bcorso commented on June 9, 2024

Okay, thanks for the clarification on that.

from dagger.

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.