Commit 5a942a6
authored
chore(perf): refactor checking path for directory (#639)
- Instead of shelling out to test each path, the new code finds all of
the directories under the target in one shell call. The result is then
added to a set and the set is checked.
- The starlark profile for the `soto_example` dropped from 350 seconds
to 46 seconds.
- Simplified the implementation for `repository_files.is_directory()`.
Closes #582.1 parent 73f28a1 commit 5a942a6
2 files changed
+10
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
783 | 790 | | |
784 | 791 | | |
785 | 792 | | |
786 | 793 | | |
787 | 794 | | |
788 | | - | |
| 795 | + | |
789 | 796 | | |
790 | 797 | | |
791 | 798 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
167 | 165 | | |
168 | 166 | | |
169 | 167 | | |
| |||
174 | 172 | | |
175 | 173 | | |
176 | 174 | | |
177 | | - | |
178 | 175 | | |
179 | | - | |
180 | | - | |
| 176 | + | |
181 | 177 | | |
182 | 178 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 179 | + | |
191 | 180 | | |
192 | 181 | | |
193 | 182 | | |
| |||
0 commit comments