From d9e509689e99021aea25d1be7b332e313f588cbc Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Tue, 2 Sep 2014 00:36:05 +0000 Subject: [PATCH] 11 percent startup speed improvement because DMD's backend sucks --- src/actypes.d | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/actypes.d b/src/actypes.d index 70bf67a..f42d7b6 100644 --- a/src/actypes.d +++ b/src/actypes.d @@ -94,11 +94,10 @@ public: { // Compare the pointers because the strings have been interned. // Identical strings MUST have the same address + int r = name.ptr > other.name.ptr; if (name.ptr < other.name.ptr) - return -1; - if (name.ptr > other.name.ptr) - return 1; - return 0; + r = -1; + return r; } bool opEquals(ref const ACSymbol other) const pure nothrow @safe