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

Skip to content

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

@bobot

Description

@bobot

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions