summaryrefslogtreecommitdiff
path: root/CHANGES.rst
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-07-07 07:40:24 -0400
committerNed Batchelder <ned@nedbatchelder.com>2019-07-07 13:39:13 -0400
commitdade9db58673d4f712ba5c50ed66d1c67a7e1d5d (patch)
tree1b88b3f99bd3348b566d01943439ccb72b4673ca /CHANGES.rst
parent4b43eff1377e818db2c42521d98bf2a0973b1cb6 (diff)
downloadpython-coveragepy-git-dade9db58673d4f712ba5c50ed66d1c67a7e1d5d.tar.gz
Avoid useless or redundant db operations. Faster.
Moving operations into the "with self._connect" means less opening and closing of the database. Returning early if there is no data to write avoids writing empty contexts.
Diffstat (limited to 'CHANGES.rst')
-rw-r--r--CHANGES.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 52ec0761..ec5fea2d 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -32,6 +32,8 @@ Unreleased
information to each covered line. Hovering over the "ctx" marker at the
end of the line reveals a list of the contexts that covered the line.
+- Dynamic contexts with no data are no longer written to the database.
+
- Added the classmethod :meth:`Coverage.current` to get the latest started
`Coverage` instance.