Skip to content

chore: use strings.Builder in yubikey#1024

Merged
andrinoff merged 1 commit intofloatpane:masterfrom
Haroka-74:fix/issue-962
Apr 27, 2026
Merged

chore: use strings.Builder in yubikey#1024
andrinoff merged 1 commit intofloatpane:masterfrom
Haroka-74:fix/issue-962

Conversation

@Haroka-74
Copy link
Copy Markdown
Contributor

What?

Replaced repeated += string concatenation in pgp/yubikey.go with strings.Builder.

Why?

Each += on a string allocates a new string. Using strings.Builder avoids redundant allocations when building the card info string.

Closes #962

@Haroka-74 Haroka-74 requested a review from a team as a code owner April 26, 2026 12:59
@github-actions github-actions Bot added the chore label Apr 26, 2026
Copy link
Copy Markdown
Member

@andrinoff andrinoff left a comment

Choose a reason for hiding this comment

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

lgtm, not critical to merge

@andrinoff
Copy link
Copy Markdown
Member

/approve

Copy link
Copy Markdown
Member

@floatpanebot floatpanebot left a comment

Choose a reason for hiding this comment

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

Approved on behalf of @andrinoff via /approve command.

@Haroka-74
Copy link
Copy Markdown
Contributor Author

Hi @andrinoff

Is this PR planned to be merged in the future?

@andrinoff
Copy link
Copy Markdown
Member

yes, was going to merge it just now

@andrinoff andrinoff merged commit a70c07e into floatpane:master Apr 27, 2026
14 checks passed
@Haroka-74 Haroka-74 deleted the fix/issue-962 branch April 27, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: String concatenation in loop in YubiKey info display

3 participants