• Kirill Smelkov's avatar
    client: account for cache hit/miss statistics · c76b3a0a
    Kirill Smelkov authored
    This information is handy to see how well cache performs.
    
    Amended by Julien Muchembled:
    - do not abbreviate some existing field names in repr result (asking the
      user to look at the source code in order to decipher logs is not nice)
    - hit: change from %.1f to %.3g
    - hit: hide it completely if nload is 0
    - use __future__.division instead of adding more casts to float
    c76b3a0a
cache.py 12.4 KB