quantopian/zipline — pull request #53 by ehebert (2013-01-07 17:19:24+00:00)
Title: Performance improvements sorting and done message

Removes bottlenecks from sorting and checking the DONE message on each event.

Uses heapq.merge instead of zipline's sort module.

Uses StopIteration instead of maintaining knowledge of a 'DONE' packet.