New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KT-24668 - Kotlin DSL 3-4x slower than Groovy DSL on FIRST USE on many simple projects build #902

Open
eskatos opened this Issue May 31, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@eskatos
Copy link
Member

eskatos commented May 31, 2018

Groovy DSL ~18s
scenario: first use of largeJavaMultiProject
template: largeJavaMultiProject
performance test results

Kotlin DSL ~75s
scenario: first use of largeJavaMultiProjectKotlinDsl
template: largeJavaMultiProjectKotlinDsl
performance test results

Both with:

  • clean checkout
  • empty local caches
  • cold daemon

The compilation of the 500 build scripts of the example build by the Kotlin compiler dominates wall clock. Note that script compilation is not parallelized in Kotlin nor Groovy.

See the upstream KT-24668 investigation issue.

@JLLeitschuh

This comment has been minimized.

Copy link
Contributor

JLLeitschuh commented May 31, 2018

Is this also true with importing into the IntelliJ?

@hansd

This comment has been minimized.

Copy link
Member

hansd commented May 31, 2018

It might be helpful to do a similar measurement with the following parameters:

  • warm daemon
  • everything has been compiled before
  • a change to buildSrc that in my understanding will trigger a full recompile.
@eskatos

This comment has been minimized.

Copy link
Member

eskatos commented Jul 9, 2018

Ways to improve the situation include:

  • #753 Build-cache for scripts
  • #740 Compilation avoidance for scripts
  • #745 Compiling scripts in parallel
  • #201/KT-24668 Optimize Kotlin compiler context reuse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment