Hello !

I'm using Nim to make a small game engine and a few games. However, as the 
engine has grow, the compile time has increased by a lot.

Currently, the project has 10102 lines of Nim code (excluding comments and 
empty lines) and takes about 10 seconds to compile. While this is very 
impressive for a language without incremental compilation, it makes iterating 
very slow (I'm working with 1.6.12, refc and the cpp backend because of a 
cimgui dependency and planning to switch to orc at some point).

Moreover, I had another project that used libp2p and where compilation times 
where so unbearable slow (about 30 seconds) that I decided to switch to go as 
the whole libp2p code needed to get recompiled every time.

While IC is in the works, do you have any tips on how to speed up compilation 
times / alleviate the issue ?

Maybe a way to compile parts of a project into DLL files as a primitive IC ?

Or maybe using hot reloading, I don't know if it helps ?

Or is it possible to use IC with devel using some undocumented compiler flag ?

Reply via email to