Skip to content

refactor: build environment variables with strings.Builder#353

Open
tenthirtyam wants to merge 1 commit into
hashicorp:mainfrom
tenthirtyam:refactor/build-environment-variables-with-strings-builder
Open

refactor: build environment variables with strings.Builder#353
tenthirtyam wants to merge 1 commit into
hashicorp:mainfrom
tenthirtyam:refactor/build-environment-variables-with-strings-builder

Conversation

@tenthirtyam

Copy link
Copy Markdown

Description

Uses strings.Builder when flattening environment variables to avoid repeatedly copying the growing output during concatenation.

Resolved Issues

Avoid repeated allocations from string concatenation while assembling flattened environment variables.

Rollback Plan

Revert commit.

Changes to Security Controls

None.

Uses `strings.Builder` when flattening environment variables to avoid repeatedly copying the growing output during concatenation.

Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
@tenthirtyam
tenthirtyam requested a review from a team as a code owner July 24, 2026 12:44
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.

1 participant