diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-05-28 07:15:03 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-05-28 07:15:03 -0400 |
commit | 863d7602bf3ffff089dc9e9ee8b89ad404f0fea4 (patch) | |
tree | b922e687ea2d0974b4f37833f09be8488736f8da | |
parent | b1977499ed7a9bb64c1687454c979b8e7d2703da (diff) | |
download | python-coveragepy-git-863d7602bf3ffff089dc9e9ee8b89ad404f0fea4.tar.gz |
Clean up
-rw-r--r-- | CHANGES.rst | 2 | ||||
-rw-r--r-- | CONTRIBUTORS.txt | 1 | ||||
-rw-r--r-- | coverage/htmlfiles/coverage_html.js | 4 |
3 files changed, 6 insertions, 1 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index 99abfd42..d75322f6 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -29,6 +29,8 @@ Unreleased (might become 5.0) - Running coverage many times for small runs in a single process should be faster, closing `issue 625`_. Thanks, David MacIver. +- Large HTML report pages load faster. Thanks, pankajp. + .. _issue 625: https://bitbucket.org/ned/coveragepy/issues/625/lstat-dominates-in-the-case-of-small .. _issue 650: https://bitbucket.org/ned/coveragepy/issues/650/allow-setting-configuration-file-location diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index d3112a14..de4ea7d9 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -81,6 +81,7 @@ Nathan Land Noel O'Boyle Olivier Grisel Ori Avtalion +pankajp Pablo Carballo Patrick Mezard Peter Baughman diff --git a/coverage/htmlfiles/coverage_html.js b/coverage/htmlfiles/coverage_html.js index b7fbd9c9..c1a41192 100644 --- a/coverage/htmlfiles/coverage_html.js +++ b/coverage/htmlfiles/coverage_html.js @@ -559,7 +559,9 @@ coverage.resize_scroll_markers = function () { offsets = {}; // Calculate line offsets outside loop to prevent relayouts - c.missed_lines.each(function(){offsets[this.id] = $(this).offset().top}); + c.missed_lines.each(function() { + offsets[this.id] = $(this).offset().top; + }); c.missed_lines.each(function () { var id_name = $(this).attr('id'), line_top = Math.round(offsets[id_name] * marker_scale), |