I use parallel_for from ppl.h and when I run the program from visual studio (2010) both debug and release version they run quite slow compared to running the executable from outside visual studio. Is there some option that I can disable, only in the release version maybe, to run the program faster inside visual studio?
You can try running the program without the debugger being attached to it. In C++-Mode the shortcut for that is CTRL + F5.