Skip to content

Commit

Permalink
21000: Fixes performance bug in string interning (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
howsohazard authored Jul 22, 2024
1 parent 7e7786d commit 636a874
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Amalgam/string/StringInternPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,10 @@ class StringInternPool

//one is static, destroy the other
if(sid_1_static)
DestroyStringReference(sid_2_static);
DestroyStringReference(sid_2);
else
DestroyStringReference(sid_1_static);
DestroyStringReference(sid_1);
return;
}

std::array<StringID, 2> string_ids = { sid_1, sid_2 };
Expand Down

0 comments on commit 636a874

Please sign in to comment.