Mercurial > hg > graal-jvmci-8
comparison mxtool/mx.py @ 15497:1f28c463e452
mx: slight tweak of parallel Java build heuristics
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 05 May 2014 13:24:57 +0200 |
parents | f5eba273a4f2 |
children | 406a94c03ffa |
comparison
equal
deleted
inserted
replaced
15496:f5eba273a4f2 | 15497:1f28c463e452 |
---|---|
2141 return task._d | 2141 return task._d |
2142 | 2142 |
2143 def compareTasks(t1, t2): | 2143 def compareTasks(t1, t2): |
2144 d = remainingDepsDepth(t1) - remainingDepsDepth(t2) | 2144 d = remainingDepsDepth(t1) - remainingDepsDepth(t2) |
2145 if d == 0: | 2145 if d == 0: |
2146 d = len(t1.proj.annotation_processors()) - len(t2.proj.annotation_processors()) | 2146 t1Work = (1 + len(t1.proj.annotation_processors())) * len(t1.javafilelist) |
2147 if d == 0: | 2147 t2Work = (1 + len(t2.proj.annotation_processors())) * len(t2.javafilelist) |
2148 d = len(t1.javafilelist) - len(t2.javafilelist) | 2148 d = t1Work - t2Work |
2149 return d | 2149 return d |
2150 | 2150 |
2151 def sortWorklist(tasks): | 2151 def sortWorklist(tasks): |
2152 for t in tasks: | 2152 for t in tasks: |
2153 t._d = None | 2153 t._d = None |