Commit 78d5229
[SPARK-54958][PYTHON][ML][TEST] Accelerate test_cv_io_pipeline.py
### What changes were proposed in this pull request?
Parallelized some operations in the test.
### Why are the changes needed?
The test takes ~80s which is the second longest test case we have. Having some parallelism will reduce about 50% of the time it takes.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Test passed locally. Time consumed 64s -> 28s.
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #53725 from gaogaotiantian/optimize-cv-io-pipeline.
Authored-by: Tian Gao <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>1 parent fe9ffd5 commit 78d5229
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| 105 | + | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| |||
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
129 | | - | |
130 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
131 | 139 | | |
132 | 140 | | |
133 | 141 | | |
| |||
0 commit comments