Skip to content

lib: optimize trim(), ltrim(), rtrim() - #472

Merged
jow- merged 1 commit into
masterfrom
feat/optimize-trim
Oct 8, 2026
Merged

jow- merged 1 commit into
masterfrom
feat/optimize-trim

Conversation

@jow-

@jow- jow- commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Avoid string copy if nothing was actually trimmed and return a new reference to the original input string instead.

Avoid string copy if nothing was actually trimmed and return a new
reference to the original input string instead.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
@jow-
jow- merged commit 031ff0a into master Oct 8, 2026
3 checks passed
@jow-
jow- deleted the feat/optimize-trim branch October 8, 2026 13:24
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