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

GMP mpq_cmp function features a lot of fast cases compared to Q.compare #160

Open
bobot opened this issue Mar 3, 2025 · 0 comments
Open

Comments

@bobot
Copy link

bobot commented Mar 3, 2025

In GMP mpq_cmp avoid the actual comparison of the rational at most as possible:

  • comparing the number of limbs
  • comparing the number of bits

Does some benchmarks have been attempted to see if those optimisations are not useful? Would it be useful to use directly mpq_cmp ?

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