Skip to content
Snippets Groups Projects
  • Richard van der Hoff's avatar
    c0df6bae
    Remove `keylen` from `LruCache`. (#9993) · c0df6bae
    Richard van der Hoff authored
    `keylen` seems to be a thing that is frequently incorrectly set, and we don't really need it.
    
    The only time it was used was to figure out if we had removed a subtree in `del_multi`, which we can do better by changing `TreeCache.pop` to return a different type (`TreeCacheNode`).
    
    Commits should be independently reviewable.
    Remove `keylen` from `LruCache`. (#9993)
    Richard van der Hoff authored
    `keylen` seems to be a thing that is frequently incorrectly set, and we don't really need it.
    
    The only time it was used was to figure out if we had removed a subtree in `del_multi`, which we can do better by changing `TreeCache.pop` to return a different type (`TreeCacheNode`).
    
    Commits should be independently reviewable.
test_treecache.py 2.97 KiB