Rolling back integrate speedup (compile-server).

This commit is contained in:
Dmitry Boulytchev
2012-02-28 19:47:36 +04:00
parent 675e8056dd
commit 2e2b1decc7
@@ -260,8 +260,10 @@ public class Mappings {
private abstract class PostPass {
boolean myPerformed = false;
abstract void perform();
void run () {
void run() {
if (!myPerformed) {
myPerformed = true;
perform();
@@ -1605,7 +1607,7 @@ public class Mappings {
}
}
if (delta.isDifferentiated() && false) {
if (delta.isDifferentiated()) {
for (DependencyContext.S c : delta.getChangedClasses()) {
myClassToSubclasses.remove(c);
@@ -1629,7 +1631,7 @@ public class Mappings {
myClassToSourceFile.putAll(delta.myClassToSourceFile);
}
if (delta.isDifferentiated()) {
if (delta.isDifferentiated() && false) {
for (DependencyContext.S f : delta.getChangedFiles()) {
mySourceFileToClasses.remove(f);
final Collection<ClassRepr> classes = delta.mySourceFileToClasses.get(f);
@@ -1767,9 +1769,9 @@ public class Mappings {
@Override
public void registerImports(final String className, final Collection<String> imports, Collection<String> staticImports) {
for (String s: staticImports) {
for (String s : staticImports) {
int i = s.length() - 1;
for (; s.charAt(i) != '.'; i--);
for (; s.charAt(i) != '.'; i--) ;
imports.add(s.substring(0, i));
}