Commit 7fc0741
committed
pyhl: default surrogate process pool to 1 for library callers
Move the HYPERLIGHT_INITIAL_SURROGATES=1 default from the CLI binary
into the pyhl library so Rust callers of pyhl::install / Runtime::new
also avoid the ~3.5s startup cost of pre-spawning 512 surrogate
processes on Windows. Callers can still override via the env var.
Signed-off-by: danbugs <danilochiarlone@gmail.com>1 parent d23fdee commit 7fc0741
2 files changed
Lines changed: 20 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | 584 | | |
599 | 585 | | |
600 | 586 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
49 | 67 | | |
50 | 68 | | |
51 | 69 | | |
| |||
104 | 122 | | |
105 | 123 | | |
106 | 124 | | |
| 125 | + | |
107 | 126 | | |
108 | 127 | | |
109 | 128 | | |
| |||
216 | 235 | | |
217 | 236 | | |
218 | 237 | | |
| 238 | + | |
219 | 239 | | |
220 | 240 | | |
221 | 241 | | |
| |||
0 commit comments