Blender Git Loki
Git Commits -> Revision e130903
Revision e130903 by Jacques Lucke (master) December 2, 2021, 11:56 (GMT) |
BLI: avoid invoking tbb for small workloads We often call `parallel_for` in places with very variable sized workloads. When many elements are processed, using multi-threading is great, but when processing few elements (possibly many times) using `parallel_for` can result in significant overhead. I measured that this improves performance by >20% in the refactored realize instances code I'm working on separately. The change might also help with debugging sometimes, because the stack trace is smaller and contains fewer irrevelant symbols. |
Commit Details:
Full Hash: e1309030603980c6b2f33486adf6ae5c2e4eb965
Parent Commit: 0f89d05
Lines Changed: +10, -5
1 Modified Path:
/source/blender/blenlib/BLI_task.hh (+10, -5) (Diff)