Disabling exception handling in TBB 2.2

Disabling exception handling in TBB 2.2

I have some code that's using the commercial TBB 2.2 release and another developer on my team was running some tuning tests on it and noticed a huge number of cpu clocks in tbb::captured_exception::~captured_exception(). From my research this looks like how TBB handles exceptions that were thrown that weren't tbb exceptions. The trouble is that none of this code even uses exceptions, so I don't know where that's coming from.

Ideally, I'd just turn off exceptions since I don't need them, I tried setting __TBB_EXCEPTIONS and TBB_USE_CAPTURED_EXCEPTIONS to 0, but then I can't get my code to compile.

Any other hints?

Mike

1 contribution / 0 nouveau(x)
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.