Why is Mercurium taking so much memory?

Mercurium faithfully represents input source code, this means keeping lots of extra details that usually a compiler would disregard. You can get a breakdown of used memory using --debug-flags=memory_report