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)