Skip to content

fix(process): readToEnd slow for large output#354

Merged
filiptibell merged 1 commit intolune-org:mainfrom
lukadev-0:fix/process-read-to-end
Sep 14, 2025
Merged

fix(process): readToEnd slow for large output#354
filiptibell merged 1 commit intolune-org:mainfrom
lukadev-0:fix/process-read-to-end

Conversation

@lukadev-0
Copy link
Contributor

Fixes readToEnd on a child process created by process.create taking a very long time (reportedly up to 15 minutes!) to complete when the process outputs a large amount of data. This change reduces it to be less than 1s in most cases.

This is achieved by using io::copy instead of the read_to_end method on readers.

Fixes `readToEnd` on a child process created by `process.create` taking
a very long time to complete when the process outputs a large amount of
data.

This is achieved by using `io::copy` instead of the `read_to_end`
method on readers.
@filiptibell filiptibell merged commit 8e09fd4 into lune-org:main Sep 14, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants