Changes between Initial Version and Version 1 of Ticket #18159, comment 15


Ignore:
Timestamp:
04/11/15 17:39:27 (6 years ago)
Author:
vdelecroix
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18159, comment 15

    initial v1  
    66It was not only loss of time but well defineness. Additioning Python int with Sage integers is slower than Sage integer with Sage integer.
    77{{{
     8sage: python_one = 1r
     9sage: sage_one = 1
     10sage: sage_a = 2**12
    811sage: timeit("sage_a + python_one", number=5000000)
    9125000000 loops, best of 3: 66.3 ns per loop