Explorar el Código

optimize the performance

Sven Czarnian hace 3 años
padre
commit
7a1d4a5959
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      aman/sys/aco/Ant.py

+ 1 - 1
aman/sys/aco/Ant.py

@@ -103,7 +103,7 @@ class Ant:
         self.Sequence.append(first)
         self.SequenceDelay += self.associateInbound(self.Configuration.Inbounds[first], self.Configuration.EarliestArrivalTime)
 
-        while True:
+        while 1:
             index = self.selectNextLandingIndex(self.Sequence[-1])
             if None == index:
                 break