High memory usage during compilation

We’ve got a quite large Phoenix application. During compilation, it’s using more than 3GB of memory. I’m wondering if that’s expected or if we’re doing something weird.

Depends on what you consider “quite large”…

Can you elaborate on the size? Filecount, LOCs, dep-graph-depth?

We’ve got ~600 .ex files in our lib directory.

I’m just wondering what memory consumption other’s with larger applications are looking at during compilation. Is 3-4G completely unrealistic?