Skip to content

v1.0.4

Compare
Choose a tag to compare
@brainix brainix released this 03 Dec 01:54
· 447 commits to master since this release
9fd1f94
  1. Optimization: Define __slots__ on ContextTimer
    • This makes ContextTimer objects slightly smaller and attribute lookups slightly faster
  2. Quality of Life: By default, set expiration on CachedOrderedDicts
    • Prior to this, if you had a large keyspace, your CachedOrderedDict could've grown unbounded
    • The timeout defaults to 1 minute
    • The timeout gets reset back to 1 minute every time you set a key
    • If your keyspace has a known/controlled cardinality, you can disable the timeout by passing timeout=None to CachedOrderedDict.__init__()

What's Changed

Full Changelog: v1.0.3...v1.0.4