_project.py: cache full project path for quicker lookup
Description
Cache the full path to the project's directory in the project.
This gives nice speedups for elements like local,patch,etc on slow disks.
Changes proposed in this merge request:
- add a _absolute_directory_path on the Project
Benchmarks
The benchmarks were run on a Carbon X1, with 16 Go of RAM, under WSL.
The project used was http://gitlab.com/jennis/debian-stretch-bst and the command was
bst show debian-stack.bst
.
master (83c56d54):
- real 17m42.261s
- user 8m41.016s
- sys 8m9.359s
After the changes:
- real 15m52.571s
- user 8m19.063s
- sys 7m18.766s
Edited by Benjamin Schubert