-
-
Notifications
You must be signed in to change notification settings - Fork 423
Commit cba02e8
Improved compile speed by running multi-threaded library discovery. (#2625)
* Simplified error reporting in library detection
There is no need to duplicate the preprocessResult/Err variables.
This also simplifies naming making it more straighforward.
* Remove useless targetFilePath variable
* Slight improvement of removeBuildFromSketchFiles
* Rename variables for clarity
* Removed hardcoded build.warn_data_percentage in build.options file
Also fixed the "low memory" warning printer.
* Renamed variables for clarity
* Renamed variables for clarity
* Pre-compute sourceFile fields, and save the in the includes.cache
* Added ObjFileIsUpToDate method to sourceFile
* Implemented parallel task runner
* Simplify use of properties.SplitQuotedString
The new release of the library allow ignoring the returned error.
arduino/go-properties-orderedmap#42
* Use runner.Task in GCC preprocessor
It slightly simplifies code, but also provide the basis for the next
commits.
* Parallelize library discovery phase in compile
* The number of jobs in library detection now follows --jobs flag
* Reordered properties construction for clarity
* Reordered compileFileWithRecipe for clarity
* Added integration test
* fix: libraries are recompiled if the list of include paths changes1 parent 699ddc0 commit cba02e8
File tree
25 files changed
+665
-290
lines changed- commands
- internal
- arduino
- builder
- internal
- detector
- preprocessor
- runner
- cores/packagemanager
- integrationtest/compile_4
- testdata/libraries_discovery_caching
- SketchA
- libraries
- LibA
- LibB
- LibC
25 files changed
+665
-290
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
169 | 169 |
| |
170 | 170 |
| |
171 | 171 |
| |
172 | - | ||
172 | + | ||
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
| |||
220 | 220 |
| |
221 | 221 |
| |
222 | 222 |
| |
223 | - | ||
224 | - | ||
225 | - | ||
226 | - | ||
227 | 223 |
| |
228 | 224 |
| |
229 | 225 |
| |
| |||
253 | 249 |
| |
254 | 250 |
| |
255 | 251 |
| |
252 | + | ||
253 | + | ||
254 | + | ||
255 | + | ||
256 | + | ||
256 | 257 |
| |
257 | 258 |
| |
258 | 259 |
| |
| |||
264 | 265 |
| |
265 | 266 |
| |
266 | 267 |
| |
267 | - | ||
268 | + | ||
268 | 269 |
| |
269 | 270 |
| |
270 | 271 |
| |
271 | 272 |
| |
272 | 273 |
| |
273 | - | ||
274 | + | ||
274 | 275 |
| |
275 | 276 |
| |
276 | - | ||
277 | + | ||
277 | 278 |
| |
278 | 279 |
| |
279 | 280 |
| |
| |||
462 | 463 |
| |
463 | 464 |
| |
464 | 465 |
| |
465 | - | ||
466 | + | ||
466 | 467 |
| |
467 | - | ||
468 | + | ||
468 | 469 |
| |
469 | 470 |
| |
470 | 471 |
| |
471 | 472 |
| |
472 | - | ||
473 | - | ||
473 | + | ||
474 | + | ||
474 | 475 |
| |
475 | 476 |
| |
476 | 477 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 | - | ||
31 | 30 |
| |
32 | 31 |
| |
33 | 32 |
| |
| |||
265 | 264 |
| |
266 | 265 |
| |
267 | 266 |
| |
268 | - | ||
269 | - | ||
270 | - | ||
271 | - | ||
267 | + | ||
272 | 268 |
| |
273 | 269 |
| |
274 | 270 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
720 | 720 |
| |
721 | 721 |
| |
722 | 722 |
| |
723 | - | ||
724 | - | ||
725 | - | ||
726 | - | ||
723 | + | ||
727 | 724 |
| |
728 | 725 |
| |
729 | 726 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
62 | - | ||
63 | - | ||
64 | - | ||
65 | 62 |
| |
66 | 63 |
| |
67 | 64 |
| |
| |||
89 | 86 |
| |
90 | 87 |
| |
91 | 88 |
| |
92 | - | ||
89 | + | ||
93 | 90 |
| |
94 | 91 |
| |
95 | 92 |
| |
| |||
125 | 122 |
| |
126 | 123 |
| |
127 | 124 |
| |
128 | - | ||
129 | - | ||
125 | + | ||
126 | + | ||
127 | + | ||
130 | 128 |
| |
131 | 129 |
| |
132 | 130 |
| |
133 | 131 |
| |
134 | 132 |
| |
135 | - | ||
133 | + | ||
136 | 134 |
| |
137 | 135 |
| |
138 | - | ||
136 | + | ||
139 | 137 |
| |
140 | - | ||
138 | + | ||
141 | 139 |
| |
142 | 140 |
| |
143 | 141 |
| |
| |||
146 | 144 |
| |
147 | 145 |
| |
148 | 146 |
| |
147 | + | ||
148 | + | ||
149 | 149 |
| |
150 | 150 |
| |
151 | 151 |
| |
152 | 152 |
| |
153 | - | ||
154 | - | ||
155 | - | ||
156 | - | ||
157 | 153 |
| |
158 | 154 |
| |
159 | 155 |
| |
| |||
165 | 161 |
| |
166 | 162 |
| |
167 | 163 |
| |
168 | - | ||
169 | - | ||
164 | + | ||
165 | + | ||
166 | + | ||
170 | 167 |
| |
171 | 168 |
| |
172 | - | ||
173 | - | ||
174 | 169 |
| |
175 | 170 |
| |
176 | 171 |
| |
| |||
190 | 185 |
| |
191 | 186 |
| |
192 | 187 |
| |
193 | - | ||
194 | - | ||
195 | - | ||
196 | - | ||
188 | + | ||
189 | + | ||
190 | + | ||
191 | + | ||
192 | + | ||
193 | + | ||
194 | + | ||
195 | + | ||
197 | 196 |
| |
198 | 197 |
| |
199 | 198 |
| |
200 | 199 |
| |
201 | 200 |
| |
202 | - | ||
201 | + | ||
203 | 202 |
| |
204 | 203 |
| |
205 | 204 |
| |
| |||
212 | 211 |
| |
213 | 212 |
| |
214 | 213 |
| |
215 | - | ||
216 | 214 |
| |
217 | 215 |
| |
218 | 216 |
| |
219 | 217 |
| |
220 | 218 |
| |
221 | 219 |
| |
222 | 220 |
| |
223 | - | ||
221 | + | ||
224 | 222 |
| |
225 | 223 |
| |
226 | 224 |
| |
227 | - | ||
225 | + | ||
228 | 226 |
| |
229 | 227 |
| |
230 | - | ||
231 | - | ||
228 | + | ||
229 | + | ||
230 | + | ||
231 | + | ||
232 | 232 |
| |
233 | - | ||
233 | + | ||
234 | 234 |
| |
235 | 235 |
| |
236 | 236 |
| |
| |||
322 | 322 |
| |
323 | 323 |
| |
324 | 324 |
| |
325 | + | ||
325 | 326 |
| |
326 | 327 |
| |
327 | 328 |
| |
328 | 329 |
| |
330 | + | ||
331 | + | ||
332 | + | ||
333 | + | ||
334 | + | ||
335 | + | ||
336 | + | ||
337 | + | ||
329 | 338 |
| |
330 | 339 |
| |
331 | 340 |
| |
| |||
492 | 501 |
| |
493 | 502 |
| |
494 | 503 |
| |
495 | - | ||
496 | - | ||
497 | - | ||
498 | - | ||
504 | + | ||
499 | 505 |
| |
500 | 506 |
| |
501 | 507 |
| |
502 | 508 |
| |
503 | 509 |
| |
504 | 510 |
| |
505 | 511 |
| |
506 | - | ||
512 | + | ||
507 | 513 |
| |
508 | 514 |
| |
509 | 515 |
| |
510 | 516 |
| |
511 | 517 |
| |
512 | - | ||
518 | + | ||
513 | 519 |
| |
514 | 520 |
| |
515 | 521 |
| |
516 | 522 |
| |
517 | - | ||
523 | + | ||
518 | 524 |
| |
519 | 525 |
| |
520 | 526 |
| |
|
0 commit comments