Commit e8b4d5f
committed
Performance boost: reduce instantiations of re.Scanner
- Lexer is the same for every Spec parser in spack, so don't build it
every time.
- This improves time to import package.py files a lot, as a Lexer
doesn't have to be constructed for every spc in the packages.
- To concretize dealii:
- Before: ~20 sec
- After: ~6 sec1 parent 6dcdb50 commit e8b4d5f
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2015 | 2015 | | |
2016 | 2016 | | |
2017 | 2017 | | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
2018 | 2021 | | |
2019 | 2022 | | |
2020 | 2023 | | |
2021 | | - | |
| 2024 | + | |
2022 | 2025 | | |
2023 | 2026 | | |
2024 | 2027 | | |
| |||
0 commit comments