Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core/shell): speedup Command.execute & fix extra new lines #9706

Merged
merged 4 commits into from
May 9, 2024

Conversation

amrbashir
Copy link
Member

@amrbashir amrbashir commented May 8, 2024

The speed gains comes from running the Command in Rust fully and returning the result in one go instead of using events.

The extra new lines was a regression from #6519

ref: #7684 (comment)

The speed gains comes from running the Command in Rust fully and returning the result in one go instead of using events.

The extra new lines was a regression from #6519

ref: #7684 (comment)
) -> super::Result<ChildProcessReturn> {
let mut command = prepare_cmd(&context, &program, args, &options)?;

#[cfg(any(shell_execute, shell_sidecar))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why isn't this cfg on the function itself?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait actually the cfg is not needed at all

@amrbashir amrbashir merged commit 7f885bd into 1.x May 9, 2024
29 checks passed
@amrbashir amrbashir deleted the enhance/shell-command-execute-speed branch May 9, 2024 15:14
amrbashir added a commit that referenced this pull request May 9, 2024
amrbashir added a commit that referenced this pull request May 9, 2024
…9729)

* fix(core): fix compilation when `shell-execute` or `shell-sidecar`

regression from: #9706

* change file
amrbashir added a commit that referenced this pull request May 15, 2024
amrbashir added a commit that referenced this pull request May 15, 2024
…nes (#9706)" (#9792)

* Revert "fix(core/shell): speedup `Command.execute` & fix extra new lines (#9706)"

This reverts commit 7f885bd.

* change file
amrbashir added a commit that referenced this pull request May 15, 2024
* fix(core/shell): speedup `Command.execute` & fix extra new lines

The speed gains comes from running the Command in Rust fully and returning the result in one go instead of using events.

The extra new lines was a regression from #6519

ref: #7684 (comment)

* fix unix build

* clippy

* cleanup

---------

Co-authored-by: Lucas Nogueira <[email protected]>
lucasfernog added a commit that referenced this pull request May 24, 2024
* fix(core/shell): speedup `Command.execute` & fix extra new lines (#9706)

* fix(core/shell): speedup `Command.execute` & fix extra new lines

The speed gains comes from running the Command in Rust fully and returning the result in one go instead of using events.

The extra new lines was a regression from #6519

ref: #7684 (comment)

* fix unix build

* clippy

* cleanup

---------

Co-authored-by: Lucas Nogueira <[email protected]>

* lock file

* minor

---------

Co-authored-by: Lucas Nogueira <[email protected]>
Co-authored-by: Lucas Nogueira <[email protected]>
FabianLars pushed a commit that referenced this pull request Jul 2, 2024
…9729)

* fix(core): fix compilation when `shell-execute` or `shell-sidecar`

regression from: #9706

* change file
lucasfernog added a commit that referenced this pull request Jul 2, 2024
…10174)

* fix(core): fix compilation when `shell-execute` or `shell-sidecar` (#9729)

* fix(core): fix compilation when `shell-execute` or `shell-sidecar`

regression from: #9706

* change file

* lint

---------

Co-authored-by: Amr Bashir <[email protected]>
Co-authored-by: Lucas Nogueira <[email protected]>
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