bool(objstorage) uses len(objstorage) != 0, which takes "a little bit"
of time on non-trivial objstorages...
Details
Details
- Reviewers
vlorentz - Maniphest Tasks
- Restricted Maniphest Task
- Commits
- rDOBJS26201f451e8c: use `objstorage is None` instead of `not objstorage`
the staging objstorages are not on fire anymore
Diff Detail
Diff Detail
- Repository
- rDOBJS Object storage
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
Build is green
Patch application report for D7289 (id=26382)
Rebasing onto e90ea3e2cf...
Current branch diff-target is up to date.
Changes applied before test
commit 26201f451e8c39e3b765bb23896dce9b3301b3d1 Author: Nicolas Dandrimont <nicolas@dandrimont.eu> Date: Thu Mar 3 19:52:14 2022 +0100 use `objstorage is None` instead of `not objstorage` `bool(objstorage)` uses `len(objstorage) != 0`, which takes "a little bit" of time on non-trivial objstorages...
See https://jenkins.softwareheritage.org/job/DOBJS/job/tests-on-diff/143/ for more details.