Skip to content
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

By 2027 change default setting to WITH_LIBDIVIDE=OFF in CMakeLists.txt #57

Open
kimwalisch opened this issue May 4, 2022 · 1 comment

Comments

@kimwalisch
Copy link
Owner

We currently use libdivide because integer division is very slow on most x64 CPUs. However integer division will likely become much faster in near future and then WITH_LIBDIVIDE=OFF is expected to improve primecount's performance. But carefully benchmark some large inputs e.g. 1e21 --AC -s.

@kimwalisch
Copy link
Owner Author

libdivide is now disabled by default (since primecount-7.11) for Apple Silicon CPUs on Apple OSes in CMakeLists.txt.

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