LibOverride: Improve performances by using better string hashing function.

This is not really huge improvements, but 2% are always good to have.
This commit is contained in:
Bastien Montagne 2020-06-18 18:15:52 +02:00
parent 52b8d668f4
commit 722adcfc48
Notes: blender-bot 2023-02-14 08:08:54 +01:00
Referenced by issue #54762, Library Overrides - investigate further performances issues.
1 changed files with 2 additions and 1 deletions

View File

@ -310,7 +310,8 @@ BLI_INLINE IDOverrideLibraryRuntime *override_library_rna_path_mapping_ensure(
IDOverrideLibrary *override)
{
if (override->runtime == NULL) {
override->runtime = BLI_ghash_new(BLI_ghashutil_strhash_p, BLI_ghashutil_strcmp, __func__);
override->runtime = BLI_ghash_new(
BLI_ghashutil_strhash_p_murmur, BLI_ghashutil_strcmp, __func__);
for (IDOverrideLibraryProperty *op = override->properties.first; op != NULL; op = op->next) {
BLI_ghash_insert(override->runtime, op->rna_path, op);
}