Skip to content

feat(perf): Speed up direct copy path for decodeUtf16Le()#1041

Merged
boorad merged 2 commits into
margelo:mainfrom
wh201906:wh201906/fast-decode-utf16
May 12, 2026
Merged

feat(perf): Speed up direct copy path for decodeUtf16Le()#1041
boorad merged 2 commits into
margelo:mainfrom
wh201906:wh201906/fast-decode-utf16

Conversation

@wh201906
Copy link
Copy Markdown
Contributor

@wh201906 wh201906 commented May 12, 2026

Inspired by #1037 (comment)
Remove the implicit zero-filling caused by vector::resize() in the direct copy path, increased the speed by 37%


Screenshots
Before After
image image

wh201906 added 2 commits May 13, 2026 00:40
Use vector::reserve to allocate less memory
Avoid unnecessary zero-filling in direct copy branch
@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 2026

@wh201906 is attempting to deploy a commit to the Margelo Team on Vercel.

A member of the Team first needs to authorize it.

@boorad boorad merged commit 14a1b06 into margelo:main May 12, 2026
5 of 6 checks passed
@wh201906 wh201906 deleted the wh201906/fast-decode-utf16 branch May 13, 2026 01:05
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.

2 participants