Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2020-06-18 19:15:52 +0300
committerBastien Montagne <bastien@blender.org>2020-06-18 19:27:49 +0300
commit722adcfc48078ea3994c1dbf3d5d751864e6ae12 (patch)
tree76f7ccc295d74d99b0370666fb9866ceab39571a
parent52b8d668f4d3d0a841313b678027a2d6af2fbc37 (diff)
LibOverride: Improve performances by using better string hashing function.
This is not really huge improvements, but 2% are always good to have.
-rw-r--r--source/blender/blenkernel/intern/lib_override.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/lib_override.c b/source/blender/blenkernel/intern/lib_override.c
index c37ba35991e..2da562ec2ed 100644
--- a/source/blender/blenkernel/intern/lib_override.c
+++ b/source/blender/blenkernel/intern/lib_override.c
@@ -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);
}