diff options
author | jvoisin <julien.voisin@dustri.org> | 2020-01-02 15:18:26 +0100 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2020-01-04 16:24:05 -0500 |
commit | aa6d8512e3184c1cc3b5868f8ab30aaa1c292d8c (patch) | |
tree | 20f42c332c1f0ea0094c8eb212aae4b1d71e450a /coverage/version.py | |
parent | aefe08b437d1ce9c4e0bbdd7dba69e7316ede313 (diff) | |
download | python-coveragepy-git-aa6d8512e3184c1cc3b5868f8ab30aaa1c292d8c.tar.gz |
Improve the performances of SqliteDb._connect
Since the self.filename attribute doesn't change
during the lifetime of a SqliteDb object,
we can move its relpath transformation in
the init method, instead of doing it every time
_connect is called, resulting in a ~30% performances
gain.
Diffstat (limited to 'coverage/version.py')
0 files changed, 0 insertions, 0 deletions