diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-10-02 13:57:11 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-10-02 16:42:04 +0300 |
commit | c65c4149c9be8a1811eb389f657216fab071dfc5 (patch) | |
tree | 40df49fe0f142b0c27791f417411ed521427a482 /source/blender/makesrna | |
parent | ab72406dc347b428b5ef6981afd1ca45781f0ae6 (diff) |
Cleanup: Refactor `ed_screen_context()` to use hash lookups
Refactor `ed_screen_context()` to use `GHash` lookups instead of a
sequence of string comparisons. This should provide a nice speedup,
given that the hash for `member` only has to be computed once instead of
matching it to each possible string.
Reviwed by: brecht
Differential Revision: https://developer.blender.org/D9090
Diffstat (limited to 'source/blender/makesrna')
0 files changed, 0 insertions, 0 deletions