Crystal: Compiling VERY slow.

Created on 24 Feb 2017  路  2Comments  路  Source: crystal-lang/crystal

A simple puts "hello world" takes more than 15 seconds to compile on my system. Is this a known issue? When did the compiler get so slow?

$ echo 'puts "hello world"' > ./hello.cr
$ time crystal build ./hello.cr
crystal build ./hello.cr  0.84s user 18.61s system 77% cpu 25.093 total
$ crystal version
Crystal 0.21.0 (2017-02-21)

Most helpful comment

Much better! Thank you.

All 2 comments

Try rm -rf ~/.cache/crystal. The previous compiler version generated lots of files inside ~/.cache/crystal which might affect compile times.

Much better! Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

farleyknight picture farleyknight  路  64Comments

fridgerator picture fridgerator  路  79Comments

stugol picture stugol  路  70Comments

RX14 picture RX14  路  62Comments

MakeNowJust picture MakeNowJust  路  64Comments