diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-07-07 07:40:24 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-07-07 13:39:13 -0400 |
commit | dade9db58673d4f712ba5c50ed66d1c67a7e1d5d (patch) | |
tree | 1b88b3f99bd3348b566d01943439ccb72b4673ca /coverage/data.py | |
parent | 4b43eff1377e818db2c42521d98bf2a0973b1cb6 (diff) | |
download | python-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 'coverage/data.py')
0 files changed, 0 insertions, 0 deletions