Skip to content

Faster c mem{cpy,set}#1473

Draft
ludfjig wants to merge 1 commit into
hyperlight-dev:mainfrom
ludfjig:fix_mem_nt
Draft

Faster c mem{cpy,set}#1473
ludfjig wants to merge 1 commit into
hyperlight-dev:mainfrom
ludfjig:fix_mem_nt

Conversation

@ludfjig
Copy link
Copy Markdown
Contributor

@ludfjig ludfjig commented May 26, 2026

Switching to picolibc from musl libc regressed c guests performance due to slower mem{set,cpy}.

I think because we infact read most buffers pretty immediately after writing them, so using NT stores does more harming than helping us. Switching memcpy to generic versions instead of machine specific seems to improve performance for us.

Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
@ludfjig ludfjig added the kind/enhancement For PRs adding features, improving functionality, docs, tests, etc. label May 27, 2026
@ludfjig ludfjig changed the title [test] Faster c mem{cpy,set} Faster c mem{cpy,set} May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement For PRs adding features, improving functionality, docs, tests, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant