From 1404665ed8870771c47fb132273275b1f6a5ab7a Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 23 Oct 2013 22:19:26 -0400 Subject: Use sets as much as possible to speed HTML reports. Seems to be a 10% speedup. --- coverage/control.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'coverage/control.py') diff --git a/coverage/control.py b/coverage/control.py index 4b76121c..f75a3dda 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -572,8 +572,11 @@ class coverage(object): """ analysis = self._analyze(morf) return ( - analysis.filename, analysis.statements, analysis.excluded, - analysis.missing, analysis.missing_formatted() + analysis.filename, + sorted(analysis.statements), + sorted(analysis.excluded), + sorted(analysis.missing), + analysis.missing_formatted(), ) def _analyze(self, it): -- cgit v1.2.1