Blender Git Loki
Git Commits -> Revision 2aab727
Revision 2aab727 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: * Further simplify the general logic of the code (we now typically only do one loop over the list of data-blocks, instead of two). 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) | 62s | 49s | 27% | | 40K, fully random | 76s | 51s | 49% | | 40K, fully constant | 77s | 71s | 8% | Note that 'constant' names give little improvement, as in that case the first loop over the list of IDs (checking whether base given name was already in use) was aborting very quickly. |
Commit Details:
Full Hash: 2aab72700909a1a627ba01b44321b5867cb49fd5
Parent Commit: 4ed3a62
Lines Changed: +28, -59
1 Modified Path:
/source/blender/blenkernel/intern/library.c (+28, -59) (Diff)