Commit d79579c
Ulrike Kiesel
fix(analysis): replace fixed sleep with polling in ProjectInputReader
The fixed 100ms sleep was insufficient on CI after the TreeSitter v0.4.1
dependency bump (1.5 MB JAR), which slightly increased JVM startup time.
The upstream svnlogparser process no longer wrote its sync flag within
100ms, so modify read an empty stdin and skipped writing the output file.
Replace with a polling loop (50ms interval, 500ms max) that exits as soon
as data is available, making the pipe chain robust to JVM startup variance.1 parent cb15e6a commit d79579c
1 file changed
Lines changed: 10 additions & 3 deletions
File tree
- analysis/model/src/main/kotlin/de/maibornwolff/codecharta/serialization
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
15 | | - | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
| |||
0 commit comments