Commit 87098f7
committed
perf: Enable TBB parallelization unconditionally in HessianFactor
Remove conditional check for GTSAM_TBB_BOUNDED_MEMORY_GROWTH_FLAG to
always enable TBB parallelization when GTSAM_USE_TBB is defined.
Improves optimizer performance on my test case with
12 cores by ~27% (117.2s -> 85.7s) by reducing
iteration times from ~5-6s to ~3s.
Before:
```
Running gtsam optimizer took 117.2392 seconds
```
After:
```
Running gtsam optimizer took 85.6852 seconds
```1 parent 5013e2a commit 87098f7
1 file changed
+1
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
| 256 | + | |
262 | 257 | | |
263 | 258 | | |
264 | 259 | | |
| |||
0 commit comments