From f33e0d2d2f91c4be4ca2a2bb2e3b4d31cb024500 Mon Sep 17 00:00:00 2001 From: Dennis Date: Fri, 21 Jul 2023 13:33:50 +0200 Subject: [PATCH] Workaround bugzilla 24052 (dmd inliner slowdown) (#670) --- src/dlangui/graphics/resources.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dlangui/graphics/resources.d b/src/dlangui/graphics/resources.d index 9bbf53d2..96f76101 100644 --- a/src/dlangui/graphics/resources.d +++ b/src/dlangui/graphics/resources.d @@ -206,6 +206,11 @@ EmbeddedResource[] embedResource(string resourceName)() { /// embed all resources from list EmbeddedResource[] embedResources(string[] resourceNames)() { + version(DigitalMars) + { + pragma(inline, false); // needed because https://issues.dlang.org/show_bug.cgi?id=24052 + } + static if (resourceNames.length == 0) return []; static if (resourceNames.length == 1)