Changes between Version 22 and Version 27 of Ticket #24135


Ignore:
Timestamp:
11/03/17 09:33:21 (3 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24135

    • Property Status changed from needs_review to positive_review
    • Property Reviewers changed from to Travis Scrimshaw
  • Ticket #24135 – Description

    v22 v27  
    2424
    252513. Generic code cleanup: PEP 8, `is` instead of `==` for pointers, ...
     26
     27'''Timings''':
     28
     29''`MonoDict` lookup'':
     30{{{
     31sage: from sage.structure.coerce_dict import MonoDict; D = MonoDict()
     32sage: L = [Integer(x) for x in range(1000)]
     33sage: for k in L: D[k] = k
     34sage: timeit('[D[k] for k in L]', repeat=20, number=20000)
     35}}}
     36
     37Before: {{{20000 loops, best of 20: 72.7 µs per loop}}}
     38
     39After: {{{20000 loops, best of 20: 64.5 µs per loop}}}