This is an archive of the discontinued Mercurial Phabricator instance.

util: ability to change capacity when copying lrucachedict
ClosedPublic

Authored by indygreg on Sep 6 2018, 9:17 PM.

Details

Summary

This will allow us to easily replace an lrucachedict with one
with a higher or lower capacity as consumers deem necessary.

IMO it is easier to just create a new cache instance than to
muck with the capacity of an existing cache. Mutating an existing
cache's capacity feels more prone to bugs.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Sep 6 2018, 9:17 PM
This revision was automatically updated to reflect the committed changes.