libsysprof-analyze: pre-hash symbols for faster comparisons

This commit is contained in:
Christian Hergert
2023-05-24 17:08:48 -07:00
parent ca2b008547
commit 5e9f745f38
2 changed files with 23 additions and 0 deletions

View File

@ -144,6 +144,14 @@ _sysprof_symbol_new (GRefString *name,
self->binary_nick = binary_nick;
self->begin_address = begin_address;
self->end_address = end_address;
self->hash = g_str_hash (name);
return self;
}
gboolean
sysprof_symbol_equal (const SysprofSymbol *a,
const SysprofSymbol *b)
{
return _sysprof_symbol_equal (a, b);
}