Commit 7d821c4
backingstore: avoid constantly reloading sl repo
Summary:
When there `make_matcher` callback returned `None` we were callign `make_matcher` every time through the loop. The callback loads the Sapling Repo object, which is too heavy to do every time.
Fix by tweaking things so `make_matcher` is only invoked when the current commit changes.
Reviewed By: Alramech
Differential Revision: D88696778
fbshipit-source-id: 1dbf987ded3aae608b9d3cbc68e9cf0e5f5dc0281 parent 4e93956 commit 7d821c4
1 file changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 141 | + | |
145 | 142 | | |
146 | 143 | | |
147 | 144 | | |
| |||
153 | 150 | | |
154 | 151 | | |
155 | 152 | | |
156 | | - | |
157 | | - | |
158 | 153 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
| 154 | + | |
163 | 155 | | |
164 | 156 | | |
165 | 157 | | |
166 | 158 | | |
167 | 159 | | |
168 | 160 | | |
169 | 161 | | |
| 162 | + | |
| 163 | + | |
170 | 164 | | |
171 | 165 | | |
172 | 166 | | |
| |||
1070 | 1064 | | |
1071 | 1065 | | |
1072 | 1066 | | |
1073 | | - | |
| 1067 | + | |
1074 | 1068 | | |
1075 | 1069 | | |
1076 | 1070 | | |
| |||
0 commit comments