Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Awesome, 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.


I dropped the ball on this but check the persistent term compiler for Absinthe Schemas. It should make a difference. :)


just saw this, thanks for the suggestion! I'll give that a look.


By the way, we enabled this, and it ended up reducing compilation times by almost a whole minute! Highly recommend for local development.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: