gyp: use all processors instead of hard-coded 8.

Makes no difference for me but might help others because gyp can easily
keep lots of processors busy.

BUG=362075
R=scottmg@chromium.org
Review URL: https://codereview.chromium.org/232783007/

Patch from Daniel Bratell <bratell@opera.com>!


git-svn-id: http://gyp.googlecode.com/svn/trunk@1896 78cadc50-ecff-11dd-a971-7dbc132099af
gyp: 1% faster by optimizing IsPathSections

IsPathSection is 2-3% of the execution time for chromium. Hand optimize
it a bit to make it twice as fast for a total gain of 0.5 CPU seconds.

BUG=chromium:362075
R=scottmg@chromium.org

https://codereview.chromium.org/233483002/
Patch from Daniel Bratell <bratell@opera.com>!


git-svn-id: http://gyp.googlecode.com/svn/trunk@1897 78cadc50-ecff-11dd-a971-7dbc132099af
gyp: fix O(n^2) in dependency calculations.

With 1000 targets an O(n^2) in the dependency management starts to be
noticed. This patch takes a 0.2s function to 0.02s. The function is not
parallelized so this is a true 1% speedup.

Also commented on another *potential* performance problem with very
specific dependency graphs.

BUG=362075
R=scottmg@chromium.org

Review URL: https://codereview.chromium.org/234813003/
Patch from Daniel Bratell <bratell@opera.com>!


git-svn-id: http://gyp.googlecode.com/svn/trunk@1898 78cadc50-ecff-11dd-a971-7dbc132099af
gyp: use a set() in DeepDependencies for less O(n^2). 

Another O(n^2) over the number of targets which used about half a second 
for a 1000 target system (chromium) on a reasonable computer. 

BUG=chromium:362075
R=thakis@chromium.org

Review URL: https://codereview.chromium.org/235193002/
Patch from Daniel Bratell <bratell@opera.com>!


git-svn-id: http://gyp.googlecode.com/svn/trunk@1899 78cadc50-ecff-11dd-a971-7dbc132099af
gyp: cache conditional ASTs for 3 CPU seconds (5%) gain. 

This is in the parallel part so net gain is somewhere between 
5/core_count% and 5%. In chromium on my computer I save roughly 
1.5 seconds in total runtime. 

BUG=chromium:362075
R=mark@chromium.org

Review URL: https://codereview.chromium.org/232773004/
Patch from Daniel Bratell <bratell@opera.com>!


git-svn-id: http://gyp.googlecode.com/svn/trunk@1900 78cadc50-ecff-11dd-a971-7dbc132099af