Changes between Version 5 and Version 12 of Ticket #18304


Ignore:
Timestamp:
08/14/15 16:27:45 (7 years ago)
Author:
vdelecroix
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18304

    • Property Status changed from needs_review to needs_work
    • Property Milestone changed from sage-6.7 to sage-6.9
  • Ticket #18304 – Description

    v5 v12  
    1212}}}
    1313
    14 With the branch applied all comparisons involving only Sage integers, Sage rationals and Python int/long are about the same time. With the branch applied, I got
     14Upstream mpir pull request for the `mpq_cmp_mpz` function:
    1515
    16 {{{
    17 sage: a = 1; b = 18
    18 sage: timeit("a < b", number=500000, repeat=100)
    19 500000 loops, best of 100: 62.2 ns per loop
    20 sage: a = QQ(1); b = QQ(18)
    21 sage: timeit("a < b", number=500000, repeat=100)
    22 500000 loops, best of 100: 65.3 ns per loop
    23 sage: a = 1; b = QQ(18)
    24 sage: timeit("a < b", number=500000, repeat=100)
    25 500000 loops, best of 100: 82.8 ns per loop
    26 }}}
     16    [https://github.com/wbhart/mpir/pull/157 https://github.com/wbhart/mpir/pull/157]