https://issues.dlang.org/show_bug.cgi?id=24052
--- Comment #4 from Dennis <dkor...@live.nl> --- (In reply to Grim Maple from comment #3) > Tested on my local machine, it is `dub build -b=release` that causes a slow > compile time. Not necessarily on example1, dlangui itslef takes ages to > compile too. You're right. I found that the culprit is the recursive function src/dlangui/graphics/resources.d : embedResources being inlined. Adding pragma(inline, false) fixes it, so this is indeed a duplicate of issue 23857. --