소스 검색

increase the overall performance

Sven Czarnian 3 년 전
부모
커밋
d9bc25a507
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      aman/sys/Worker.py

+ 4 - 0
aman/sys/Worker.py

@@ -110,9 +110,13 @@ class Worker(Thread):
                                           preceedingRunways = runways, preceedingIafs = iafs,
                                           ants = 5 * len(relevantInbounds), generations = 5 * len(relevantInbounds))
 
+                # run the optimizer outside the locking functions
+                self.releaseLock()
                 # perform the ACO run
                 aco = Colony(relevantInbounds, acoConfig)
                 aco.optimize()
+                self.acquireLock()
+
                 if None != aco.Result:
                     for node in aco.Result:
                         self.RecedingHorizonControl.resequenceInbound(node.Inbound)