Commit 163d76ce authored by Kevin Modzelewski's avatar Kevin Modzelewski

Remove some debug checks from InternedString

Apparently they are slowing down the irgen phase in debug mode quite a bit,
since a lot of the time is dominated by InternedString hashtables.
parent f834dfdc
......@@ -70,9 +70,9 @@ public:
const char* c_str() const;
bool operator==(InternedString rhs) const {
assert(this->_str || this->pool == invalidPool());
assert(rhs._str || rhs.pool == invalidPool());
assert(this->pool == rhs.pool || this->pool == invalidPool() || rhs.pool == invalidPool());
// assert(this->_str || this->pool == invalidPool());
// assert(rhs._str || rhs.pool == invalidPool());
// assert(this->pool == rhs.pool || this->pool == invalidPool() || rhs.pool == invalidPool());
return this->_str == rhs._str;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment