Changes between Version 27 and Version 28 of Ticket #24135


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24135 – Description

    v27 v28  
    2727'''Timings''':
    2828
     29All the changes above lead to a modest speed-up:
     30
    2931''`MonoDict` lookup'':
    3032{{{
     
    3840
    3941After: {{{20000 loops, best of 20: 64.5 µs per loop}}}
     42
     43''`TripleDict` lookup'':
     44{{{
     45sage: from sage.structure.coerce_dict import TripleDict; D = TripleDict()
     46sage: L = [(None, None, Integer(x)) for x in range(1000)]
     47sage: for k in L: D[k] = None
     48sage: timeit('[D[k] for k in L]', repeat=20, number=20000)
     49}}}
     50
     51Before: {{{20000 loops, best of 20: 97.3 µs per loop}}}
     52
     53After" {{{20000 loops, best of 20: 87.3 µs per loop}}}