Blender Git Commit Log

Git Commits -> Revision dc6a2fb

Revision dc6a2fb by Jacques Lucke (lineart-shadow)
December 8, 2021, 06:53 (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: dc6a2fb20563551e228f77c495d2d21f41bae80a
Parent Commit: 6e85fce
Committed By: YimingWu
Lines Changed: +10, -5

1 Modified Path:

/source/blender/blenlib/BLI_task.hh (+10, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021