How are Kotlin-js compilation speeds with 1.2.10? ...
# javascript
s
How are Kotlin-js compilation speeds with 1.2.10? Will I be able to get those near instant refreshes with kotlin-js? I've tried it on small projects and I get incremental compiles that are 2 or so seconds. How would this scale to larger projects? Will my team end up waiting 10-12 seconds for small changes as the project grows (again, for incremental compilations), or is the compiler going to get slower and slower? Would breaking my code up into smaller gradle modules help, or hurt?
b
Actually, 1.2.10 is just the hotfix update so doesn’t contain any big changes. But NOTE, it contains fix for incremental compilation in JS. We understand that compilation speed is very important (especially for Kotlin/JS) and we are doing our best to make compilation faster. Time of incremental compilation firstly depends on changes (how it can affect on other parts of a project) and less on a size of a project. So, ideally, compilation time shouldn’t change dramatically when a project is growing.
Would breaking my code up into smaller gradle modules help, or hurt?
Depends on how to do it 🙂 Right now IC can build incrementally only changed module and dependent modules will be rebuild. It means that you will get maximum profit from IC if you mostly change leaf modules or your project have only a single module. Note, we are working on a fix for that.
s
What does IC mean? Incremental compilation? So you are planning to bring multi-module compilation on par? That would make me feel better taking that approach
b
Yes, IC == incremental compilation. Do you mean multimodule IC? As I said we are working on it.