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 <montagne29@wanadoo.fr>2019-12-19 18:27:13 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-12-20 16:29:35 +0300
commit4cc8201a651007b7308a4468a550dbbd97c6c346 (patch)
tree6320be1ff4a866a5103e82f31eed896e97474e24 /source/blender/windowmanager/intern/wm_files_link.c
parent2aab72700909a1a627ba01b44321b5867cb49fd5 (diff)
ID Management: Improve speed of code used when creating/renaming and ID.
This commit affects `check_for_dupid()` helper: * Add a special, quicker code path dedicated to sequential addition of a large number of IDs using the same base name. This gives a significant speedup to adding 'randomly'-named IDs: | Number and type of names of IDs | old code | new code | speed improvement | | -------------------------------- | -------- | -------- | ----------------- | | 40K, mixed (14k rand, 26k const) | 49s | 39s | 26% | | 40K, fully random | 51s | 51s | 0% | | 40K, fully constant | 71s | 40s | 78% | Note that 'random' names give no improvement as expected, since this new code path will never be used in such cases.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files_link.c')
0 files changed, 0 insertions, 0 deletions