Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Optimize atomic copies #775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lemire opened this issue May 1, 2025 · 0 comments
Open

Optimize atomic copies #775

lemire opened this issue May 1, 2025 · 0 comments

Comments

@lemire
Copy link
Member

lemire commented May 1, 2025

Paul (@pauldreik) has come up with system-specific atomic-safe copy functions (#767). It seems to be based on empirical work by Erik Rigtorp https://rigtorp.se/isatomic/ for x64 systems. There is a caveat: even if the operations are indeed atomic, we still need our users (e.g., Google v8) to agree that it is indeed atomic. The x64 isa is quite varied and it would be nice to have an authoritative reference.

We are currently working with faster 64-bit copies, that should work well portably. It has decent speeds.

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

No branches or pull requests

1 participant