Skip to content

Conversation

@Databean
Copy link
Member

Related to discussion in #2010

These functions always do an allocation anyway.

Also moved the implementation to the source file.
This always does an allocation internally anyway.

Also moved the implementation to the source file, removing the abseil
include from the header.
…t case

This saves going through an intermediate std::stringstream when it can
move a single string argument into the argument vector.
- Remove `cuttlefish::Execute` overloads that take an environment: there are no callers.
- Accept a `std::vector<std::string>` by value: string arguments can be
  moved into the `Command` without reallocation.
This avoids a string allocation per environment variable.
@Databean Databean force-pushed the subprocess_string_view branch from b36a9ad to adf4f18 Compare January 16, 2026 23:11
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.

3 participants