5 ms·
> I mainly work in my company's monolithic codebase with about 800k lines of code, and compilation with even a simple change can sometimes take a full minute. A
by josevalim 3y ago
> I mainly work in my company's monolithic codebase with about 800k lines of code, and compilation with even a simple change can sometimes take a full minute. A full re-compilation including dependencies is like 20 minutes. It's a bit much.
Agreed. My focus on Elixir v1.15 (rc to be released this week) was to improve the compilation time and I have seen increases of up to 30% in compile and boot times. It requires Erlang/OTP 26 as well. Once you upgrade, I would love to hear if it did change anything for you.
- japhib 3y agoAwesome, glad to hear it! Unfortunately we’re stuck on older versions of Elixir and OTP but eventually we will get past the few things still blocking us from upgrading. Additionally, another thing making compile times very slow is actually a very large Absinthe schema, so I believe it’s Absinthe that would need to be optimized to improve the situation, more than Elixir itself.
- josevalim 3y agoI dropped the ball on this but check the persistent term compiler for Absinthe Schemas. It should make a difference. :)