Commits on Source (7)
-
Daniel Silverstone authored
Since the core Python `ChainMap.get()` implements with: self[key] if key in self else default The double-chain-lookup is expensive. This simple change solves that for our ChainMap derived structure. As such it improves matters for #466 somewhat. Signed-off-by:
Daniel Silverstone <daniel.silverstone@codethink.co.uk>
-
Tristan Van Berkom authored
_yaml.py: Implement `get()` for `ChainMap` See merge request !919
-
-
-
Chandan Singh authored
plugins/sources/pip.py: Accomodate characters '-','.','_' for packages See merge request !914
-
Benjamin Schubert authored
This removes the `_instance` on the platform object that we use for caching and not recreating the object everytime at the start of every test. This is to ensure our tests share the least amount of state. The performance penalty is from 2 to 5% accross the whole test suite. The readings were done 5 times for each before and after the change and on the same computer.
-
Benjamin Schubert authored
Showing
- buildstream/_yaml.py 6 additions, 0 deletionsbuildstream/_yaml.py
- buildstream/plugins/sources/pip.py 19 additions, 4 deletionsbuildstream/plugins/sources/pip.py
- buildstream/sandbox/_sandboxdummy.py 2 additions, 1 deletionbuildstream/sandbox/_sandboxdummy.py
- conftest.py 7 additions, 0 deletionsconftest.py
- tests/integration/missing_dependencies.py 91 additions, 0 deletionstests/integration/missing_dependencies.py
- tests/integration/pip_source.py 35 additions, 12 deletionstests/integration/pip_source.py
- tests/integration/project/files/pypi-repo/app2/App2-0.1.tar.gz 0 additions, 0 deletions.../integration/project/files/pypi-repo/app2/App2-0.1.tar.gz
- tests/integration/project/files/pypi-repo/app2/index.html 0 additions, 8 deletionstests/integration/project/files/pypi-repo/app2/index.html
- tests/integration/project/files/pypi-repo/hellolib/HelloLib-0.1.tar.gz 0 additions, 0 deletions...tion/project/files/pypi-repo/hellolib/HelloLib-0.1.tar.gz
- tests/integration/project/files/pypi-repo/hellolib/index.html 0 additions, 8 deletions...s/integration/project/files/pypi-repo/hellolib/index.html
- tests/sources/pip.py 20 additions, 0 deletionstests/sources/pip.py
- tests/testutils/__init__.py 1 addition, 0 deletionstests/testutils/__init__.py
- tests/testutils/python_repo.py 128 additions, 0 deletionstests/testutils/python_repo.py
tests/integration/missing_dependencies.py
0 → 100644
File deleted
File deleted
tests/testutils/python_repo.py
0 → 100644