Revert "cache the serialization of a Key"
authorJoey Hess <joeyh@joeyh.name>
Wed, 16 Jan 2019 20:09:53 +0000 (16:09 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 16 Jan 2019 20:21:59 +0000 (16:21 -0400)
commit96aba8eff7597898f53bfbab5865ff30a927d355
treeb4c7f6f3f9d5ad01c65eab0a16d8bfeaeb245dd1
parent863ed51ae0eef57e1f70f339b2e232a726a8c131
Revert "cache the serialization of a Key"

This reverts commit 4536c93bb2ecf114ab711beac33fa358facd6985.

That broke Read/Show of a Key, and unfortunately Key is read in at least
one place; the GitAnnexDistribution data type.

It would be worth bringing this optimisation back, but it would need
either a custom Read/Show instance that preserves back-compat, or
wrapping Key in a data type that contains the serialization, or changing
how GitAnnexDistribution is serialized.

Also, the Eq instance would need to compare keys with and without a
cached seralization the same.
12 files changed:
Annex/DirHashes.hs
Annex/Export.hs
Annex/Locations.hs
Annex/VariantFile.hs
Backend.hs
Backend/Hash.hs
Command/AddUrl.hs
Key.hs
Remote/Helper/Chunked.hs
Types/Key.hs
Upgrade/V1.hs
Utility/Hash.hs