Optimized linked shows schedule filling

* Fairly big improvement in memory usage and execution time for 24 hour linked
  shows (memory usage no longer grows with show length)
This commit is contained in:
Albert Santoni 2014-08-15 18:17:23 -04:00
parent 33f397f577
commit f072d60ff1
2 changed files with 132 additions and 93 deletions

View file

@ -280,6 +280,14 @@ class CcShow extends BaseCcShow {
}
return $instanceIds;
}
public function getFutureInstanceIds() {
$instanceIds = array();
foreach ($this->getFutureCcShowInstancess() as $ccShowInstance) {
$instanceIds[] = $ccShowInstance->getDbId();
}
return $instanceIds;
}
public function getOtherInstances($instanceId)
{