Skip to content
Snippets Groups Projects
Commit fa0a85c0 authored by Kipp Cannon's avatar Kipp Cannon
Browse files

lloidhander: performance improvement

- don't construct an intermediate list object when not needed
parent 857609f7
No related branches found
No related tags found
No related merge requests found
......@@ -1093,7 +1093,7 @@ class Handler(simplehandler.Handler):
continue
self.stream_thinca.push(instrument, (), buf_timestamp)
if any([self.stream_thinca.push(instrument, [event for event in events if event.ifo == instrument], buf_timestamp) for instrument in instruments]):
if any(self.stream_thinca.push(instrument, [event for event in events if event.ifo == instrument], buf_timestamp) for instrument in instruments):
flushed_sngls = self.stream_thinca.pull(self.rankingstat, fapfar = self.fapfar, zerolag_rankingstatpdf = self.zerolag_rankingstatpdf, coinc_sieve = self.rankingstat.fast_path_cut_from_triggers, cluster = self.cluster)
self.coincs_document.commit()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment