浏览代码

optimize the performance

Sven Czarnian 3 年之前
父节点
当前提交
7a1d4a5959
共有 1 个文件被更改,包括 1 次插入1 次删除
  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