# Compiler performance

**URL:** <https://discuss.kotlinlang.org/t/compiler-performance/876>\
**Category:** Uncategorized\
**Created:** [March 28, 2013, 10:04am UTC](https://discuss.kotlinlang.org/t/compiler-performance/876 "2013-03-28T10:04:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nanosk](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@nanosk](https://discuss.kotlinlang.org/u/nanosk)\
**Post date:** [March 28, 2013, 10:04am UTC](https://discuss.kotlinlang.org/t/compiler-performance/876/1 "2013-03-28T10:04:45Z")

</div>

Hello all,

how do you feel about the performance of the Kotlin (M5.1) compiler?

I am evaluating Kotlin M5.1 in a small project (currently about 15-20 classes). Hitting Build =\> Rebuild Project takes 11-14 seconds on a decent developer MacBook Pro Retina (2,6 GHz i7 CPU, 16GB RAM, SSD, JDK 7 current IntelliJ 12).  
Is there something I can do to improve the compiler performance?  
Or may I expect noticeable improvements in the future?

The Kotlin FAQ ([http://confluence.jetbrains.com/display/Kotlin/FAQ](http://confluence.jetbrains.com/display/Kotlin/FAQ)) claims

The main design goals behind this project are [...] that compiles at least as fast as Java, [...]

At least for now, this goal has not been met. Or is it just my setup?

Thanks for any input,  
Sascha

---

<div class="post-metadata">

**Author:** ![abreslav](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/abreslav/32/8279_2.png) [@abreslav](https://discuss.kotlinlang.org/u/abreslav)\
**Post date:** [March 28, 2013, 10:20am UTC](https://discuss.kotlinlang.org/t/compiler-performance/876/2 "2013-03-28T10:20:34Z")

</div>

We are not at all satisfied with the performance of present compiler. It is not your setup, but neither is it the design of the language. Quite a few improtant optimizations are yet to be implemented. Hopefully, we can complete them soon.

---

<div class="post-metadata">

**Author:** ![rnikander](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/rnikander/32/6881_2.png) [@rnikander](https://discuss.kotlinlang.org/u/rnikander)\
**Post date:** [January 2, 2017, 7:07pm UTC](https://discuss.kotlinlang.org/t/compiler-performance/876/3 "2017-01-02T19:07:56Z")

</div>

I was about to ask a question similar to @nanosk’s and then I found this thread. Is the same thing true today with the 1.1-M04 kotlin?

In one case I’ve got 48 files and about 6000 lines (not sure what percent comments) compiling in about 12 seconds. (`gradle compileKotlin`). Computer is a late 2011 Macbook Pro with 10GB RAM.

Rob
