Skip to content

perf: optimize string handling in open() method using Cow<str>#5

Merged
0x5457 merged 1 commit intomasterfrom
perf/optimize-string-allocations
Aug 20, 2025
Merged

perf: optimize string handling in open() method using Cow<str>#5
0x5457 merged 1 commit intomasterfrom
perf/optimize-string-allocations

Conversation

@0x5457
Copy link
Collaborator

@0x5457 0x5457 commented Aug 20, 2025

No description provided.

- Replace unnecessary .to_string() and .clone() calls with Cow<str>
- Avoid memory allocations in shm_open and flink modes by borrowing existing strings
- Only allocate memory when necessary (tmpfs mode)
- Improves performance in high-frequency scenarios
@0x5457 0x5457 merged commit d132ddd into master Aug 20, 2025
3 checks passed
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