Blender Git Loki
Git Commits -> Revision 4cc8201
Revision 4cc8201 by Bastien Montagne (master) December 20, 2019, 13:29 (GMT) |
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. |
Commit Details:
Full Hash: 4cc8201a651007b7308a4468a550dbbd97c6c346
Parent Commit: 2aab727
Lines Changed: +147, -35
1 Modified Path:
/source/blender/blenkernel/intern/library.c (+147, -35) (Diff)