cache the serialization of a Key
authorJoey Hess <joeyh@joeyh.name>
Mon, 14 Jan 2019 20:33:20 +0000 (16:33 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 14 Jan 2019 20:37:28 +0000 (16:37 -0400)
commit4536c93bb2ecf114ab711beac33fa358facd6985
treef14d3b7d9224d4979be87c5e8ba52983da359a02
parent918868915c2859d2f8d68afaa222d92143ec64f2
cache the serialization of a Key

This will speed up the common case where a Key is deserialized from
disk, but is then serialized to build eg, the path to the annex object.

It means that every place a Key has any of its fields changed, the cache
has to be dropped. I've grepped and found them all. But, it would be
better to avoid that gotcha somehow..
Annex/Export.hs
Backend.hs
Backend/Hash.hs
CHANGELOG
Command/AddUrl.hs
Key.hs
Remote/Helper/Chunked.hs
Types/Key.hs
Upgrade/V1.hs