Fix performance for generating lockfiles for pytest
and setuptools
#16591
Merged
Eric-Arellano merged 2 commits intopantsbuild:main from Eric-Arellano:improve-tool-lockfile-perfAug 20, 2022
+281-693
pytest
and setuptools
#16591