diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2019-11-22 14:26:36 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2019-11-22 14:26:36 +0300 |
commit | 2a38b857f7dc33150ff44ffda3366dbb197d5425 (patch) | |
tree | d5e634bf89b86a9d21ad692a1a6a1a42525e629f /source/blender/makesrna/intern/rna_access_compare_override.c | |
parent | cfb7f508ce76b8dea83da555e67813c161a6869d (diff) |
LibOverride: Make diffing several times faster.
Diffing on undo steps is a critical performance point of override
system, although not required for override itself, it gives user
immediate feedback ove what is overridden.
Profiling showed that rna path text search over overrides operations was
by far the most costly thing here, so now using a runtime temp ghash
mapping for this search instead.
Seems to give at least 5 times speedup on big production rig.
Diffstat (limited to 'source/blender/makesrna/intern/rna_access_compare_override.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access_compare_override.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access_compare_override.c b/source/blender/makesrna/intern/rna_access_compare_override.c index 7dae3cbf339..c3a81f0c6e1 100644 --- a/source/blender/makesrna/intern/rna_access_compare_override.c +++ b/source/blender/makesrna/intern/rna_access_compare_override.c @@ -27,6 +27,8 @@ #include "BLI_utildefines.h" #include "BLI_string.h" +#define DEBUG_OVERRIDE_TIMEIT + #ifdef DEBUG_OVERRIDE_TIMEIT # include "PIL_time_utildefines.h" #endif |