pyhl: default surrogate process pool to 1 for library callers - #22
Merged
Conversation
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>
danbugs
enabled auto-merge
May 13, 2026 21:33
Contributor
There was a problem hiding this comment.
Linux Benchmarks
Details
| Benchmark suite | Current: 7fc0741 | Previous: 094c5cf | Ratio |
|---|---|---|---|
hello_world (median) |
10 ms |
10 ms |
1 |
pandas (median) |
80 ms |
80 ms |
1 |
density (per VM) |
7 MB |
7 MB |
1 |
snapshot (disk) |
384 MiB |
385 MiB |
1.00 |
This comment was automatically generated by workflow using github-action-benchmark.
Contributor
There was a problem hiding this comment.
Windows Benchmarks
Details
| Benchmark suite | Current: 7fc0741 | Previous: 094c5cf | Ratio |
|---|---|---|---|
hello_world (median) |
1005 ms |
248 ms |
4.05 |
pandas (median) |
1678 ms |
757 ms |
2.22 |
density (per VM) |
6 MB |
6 MB |
1 |
snapshot (disk) |
392 MiB |
392 MiB |
1 |
This comment was automatically generated by workflow using github-action-benchmark.
This was referenced May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
HYPERLIGHT_INITIAL_SURROGATES=1default from the pyhl CLI binary into thepyhllibrary module so Rust callers ofpyhl::install/Runtime::newalso avoid the ~3.5s startup cost of pre-spawning 512 surrogate processes on Windows.bin/pyhl.rs.