haskell-cache icon indicating copy to clipboard operation
haskell-cache copied to clipboard

Simplify prugeExpired

Open axman6 opened this issue 6 years ago • 2 comments

It looks like purgeExpired's implementation is just a more complicated was of running HashMap.filter (not . isExpired now), which would likely be much more efficient than repeatedly reading and writing the TVar for each key.

axman6 avatar May 29 '19 09:05 axman6

You are correct! I currently don't have time to make any changes, but I'd welcome a PR. otherwise, it might take a while.

hverr avatar May 29 '19 09:05 hverr

I'll see what I can do tonight.

axman6 avatar May 29 '19 09:05 axman6