Context switching possible causes

Dmitriy Vyukov
Total Points: 10343
Status Points: 9843
Brown Belt
September 4, 2008 3:59 AM PDT
Rate
 
#8 Reply to #7
alexandrejenny@kolor.com:
Sorry my fault. My answer was done too fast.
Here's the exact code that didn't scaled.
My include's order to be sure :
#include <math.h>
#include <algorithm>


Ok. So it's std::sort and std::vector. I can model the problem.
The problem is not std::sort. The problem is iterators of std::vector. Debug iterators have some mutexes for debug checks. Define:
#define _HAS_ITERATOR_DEBUGGING 0
And the problem will go away.

Btw, in release build iterator debugging is turned off by default, and scaling is linear.


Forum Statistics

4474 users have contributed to 24001 threads and 69861 posts to date.
In the past 24 hours, we have 42 new thread(s) 152 new posts(s), and 197 new user(s).

In the past 3 days, the most popular thread for everyone has been Catastrophic error The most posts were made to Getting Started in the Partner Program The post with the most views is You can report them here if

Please welcome our newest member Udaysimha Mysore (Intel)