When I set the grainsize to 100/200/500/1000, results are the same.
...
parallel_for(blocked_range<size_t>(0, to_scan.size(), 200), //i changed the parameter to 100/200/500/1000
SubStringFinder( to_scan, max, pos ));
...
the output ranges as follows, it seems that the grainsize is more than 1000 and the parameter doesn't take effect at all.
...
[
[8855,9962)
0,1106)
[4427,5534)
[2213,2766)
...
So what's wrong with it? Thank you for your help.
Tbb version is 3.0; Processor: Intel i5 2450M; OS: Win7


