Skip to content

Conversation

@erikdubbelboer
Copy link
Collaborator

When using caching fs shouldn't cause any allocations.

Only do []byte to string conversions when really needed. When a file is already cached the conversion shouldn't be needed.

Fixes #2045

When using caching fs shouldn't cause any allocations.

Only do []byte to string conversions when really needed. When a file is
already cached the conversion shouldn't be needed.

Fixes #2045
@erikdubbelboer erikdubbelboer merged commit 1828bd4 into master Aug 9, 2025
11 checks passed
@erikdubbelboer erikdubbelboer deleted the fs-allocations branch September 5, 2025 10:56
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.

Reduce allocations in fs.go handleRequest

2 participants