mirror of
https://github.com/wolfpld/tracy
synced 2025-05-04 22:23:52 +00:00
Don't search for string in map, if it's known there's nothing there.
This commit is contained in:
parent
8b2af369ad
commit
7da59a55cc
@ -1387,11 +1387,19 @@ const char* View::GetString( const StringRef& ref ) const
|
||||
{
|
||||
if( ref.isidx )
|
||||
{
|
||||
assert( ref.active );
|
||||
return m_stringData[ref.stridx];
|
||||
}
|
||||
else
|
||||
{
|
||||
return GetString( ref.strptr );
|
||||
if( ref.active )
|
||||
{
|
||||
return GetString( ref.strptr );
|
||||
}
|
||||
else
|
||||
{
|
||||
return "???";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user