Changes between Version 18 and Version 19 of Ticket #18304
- Timestamp:
- 05/03/17 18:12:39 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18304
-
Property
Dependencies
changed from
to
#22493
-
Property
Milestone
changed from
sage-6.9
tosage-8.0
-
Property
Dependencies
changed from
-
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)`.1 MPIR 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. 2 2 3 3 Comparing integers is very fast, comparing rationals is very fast but comparing integer with rational is about 5x slower: … … 26 26 500000 loops, best of 100: 87.1 ns per loop 27 27 }}} 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!