11 percent startup speed improvement because DMD's backend sucks

This commit is contained in:
Hackerpilot 2014-09-02 00:36:05 +00:00
parent c627d6b735
commit d9e509689e
1 changed files with 3 additions and 4 deletions

View File

@ -94,11 +94,10 @@ public:
{ {
// Compare the pointers because the strings have been interned. // Compare the pointers because the strings have been interned.
// Identical strings MUST have the same address // Identical strings MUST have the same address
int r = name.ptr > other.name.ptr;
if (name.ptr < other.name.ptr) if (name.ptr < other.name.ptr)
return -1; r = -1;
if (name.ptr > other.name.ptr) return r;
return 1;
return 0;
} }
bool opEquals(ref const ACSymbol other) const pure nothrow @safe bool opEquals(ref const ACSymbol other) const pure nothrow @safe