Commit 3bf7867
committed
feat: add cache to resolver in bootstrapper
A long-running bootstrap job may resolve the same requirements
specifier many times, especially for packages like setuptools or
flit-core. This change adds a cache for all requirements based on their
full spec so that if we see the same string more than once we give the
same value without going out to the server to look at available packages
again.
Signed-off-by: Doug Hellmann <dhellmann@redhat.com>1 parent f78a613 commit 3bf7867
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
| |||
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
82 | 90 | | |
83 | 91 | | |
84 | 92 | | |
| |||
90 | 98 | | |
91 | 99 | | |
92 | 100 | | |
| 101 | + | |
| 102 | + | |
93 | 103 | | |
94 | 104 | | |
95 | 105 | | |
| |||
0 commit comments