Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

Consider optimizing code generation and its compilation #817

Closed
eskatos opened this issue Apr 10, 2018 · 1 comment
Closed

Consider optimizing code generation and its compilation #817

eskatos opened this issue Apr 10, 2018 · 1 comment

Comments

@eskatos
Copy link
Member

eskatos commented Apr 10, 2018

The Gradle Kotlin DSL generates Kotlin code in various places.

Code generation emits source code and uses the Kotlin compiler to produce the corresponding bytecode. Some of this happens on critical paths and can be slow.

If we generated Kotlin AST and then emitted both source and bytecode we could remove the cost of Kotlin compilation. In all cases observed so far we know exactly what bytecode to generate.

One evidence is described in #815 where Kotlin compilation taking several seconds could be cut down.

@bamboo
Copy link
Member

bamboo commented Oct 23, 2018

Closing as implemented in 370f268.

@bamboo bamboo closed this as completed Oct 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants