Commit a4145f8
committed
perf(dracut-functions.sh): optimise get_persistent_dev()
This shaves ~40ms (from ~50ms; average case, huge variance up to
700ms on the old one), and makes 99base go from
real 0m0.350s
user 0m0.250s
sys 0m0.119s
to
real 0m0.216s
user 0m0.162s
sys 0m0.076s1 parent 77ac95d commit a4145f8
1 file changed
+7
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
| 283 | + | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
301 | 294 | | |
302 | 295 | | |
303 | 296 | | |
| |||
0 commit comments