Changes between Version 18 and Version 19 of Ticket #18304


Ignore:
Timestamp:
05/03/17 18:12:39 (5 years ago)
Author:
vdelecroix
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18304

    • Property Dependencies changed from to #22493
    • Property Milestone changed from sage-6.9 to sage-8.0
  • Ticket #18304 – Description

    v18 v19  
    1 DISCLAIMER: this ticket is waiting from two upstream modifications (GMP and mpir). Namely the creation of the function `mpq_cmp_z(mpq_t, mpz_t)`.
     1MPIR 3.0.0 will be shipped with the function `mpq_cmp_z(mpq_t, mpz_t)`. We can use it to make integer/rational comparisons much faster.
    22
    33Comparing integers is very fast, comparing rationals is very fast but comparing integer with rational is about 5x slower:
     
    2626500000 loops, best of 100: 87.1 ns per loop
    2727}}}
    28 
    29 Upstream mpir pull request for the `mpq_cmp_mpz` function:
    30 
    31     [https://github.com/wbhart/mpir/pull/157 https://github.com/wbhart/mpir/pull/157]
    32 
    33 Warning: if you pull the branch and run `make` then you will likely rebuild your whole Sage!