mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[PR #2345] [MERGED] Pass by value to trim functions #2491
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#2491
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2345
Author: @gaul
Created: 10/9/2023
Status: ✅ Merged
Merged: 10/12/2023
Merged by: @ggtakec
Base:
master← Head:trim/value📝 Commits (1)
1cb5a32Pass by value to trim functions📊 Changes
2 files changed (+8 additions, -10 deletions)
View changed files
📝
src/string_util.cpp(+5 -7)📝
src/string_util.h(+3 -3)📄 Description
These already force a copy so passing by value has the same performance but is simpler. But this allows the compiler to perform copy elision on temporaries and the caller to explicitly
std::movein others.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
GUARDED_BYtofdcache_entity#2615