There are a couple of good posts explaining some of the issues and how to analyse them.
e.g. Understanding and fixing recompilation in Elixir projects, Implicit compile-time dependencies, How to speed up your Elixir compile times (part 1) — understanding Elixir compilation | by Tim Gent | multiverse-tech | Medium