Skip to content

perf: faster base64 size calculation via single span reuse and direct char comparison#6

Merged
egbakou merged 4 commits intomainfrom
perf/improvement
Feb 14, 2026
Merged

perf: faster base64 size calculation via single span reuse and direct char comparison#6
egbakou merged 4 commits intomainfrom
perf/improvement

Conversation

@egbakou
Copy link
Member

@egbakou egbakou commented Feb 14, 2026

Method Mean Error StdDev Allocated
GetFileSizeFromRawBase64String 1.347 ns 0.0015 ns 0.0021 ns -
GetFileSizeFromMimePrefixedBase64String 3.747 ns 0.0075 ns 0.0110 ns -

@egbakou egbakou merged commit 73ef19b into main Feb 14, 2026
1 check 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