Reduces string allocations in GUI and maths.

This commit is contained in:
Vladislav Belov
2025-10-11 19:08:02 +02:00
parent 4bf107352f
commit bedb6129f2
16 changed files with 315 additions and 51 deletions
+5
View File
@@ -130,6 +130,11 @@ CStrIntern::CStrIntern(const std::string& str)
m = GetString(str.c_str(), str.length());
}
CStrIntern::CStrIntern(const std::string_view str)
{
m = GetString(str.data(), str.length());
}
u32 CStrIntern::GetHash() const
{
return m->hash;