git-annex/Logs
Joey Hess 81d402216d 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.

Previously attempted in 4536c93bb2
and reverted in 96aba8eff7.
The problems mentioned in the latter commit are addressed now:

Read/Show of KeyData is backwards-compatible with Read/Show of Key from before
this change, so Types.Distribution will keep working.

The Eq instance is fixed.

Also, Key has smart constructors, avoiding needing to remember to update
the cached serialization.

Used git-annex benchmark:
  find is 7% faster
  whereis is 3% faster
  get when all files are already present is 5% faster
Generally, the benchmarks are running 0.1 seconds faster per 2000 files,
on a ram disk in my laptop.
2019-11-22 17:49:16 -04:00
..
Chunk update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
ContentIdentifier speed up slow quickcheck test 2019-03-06 16:43:41 -04:00
Difference update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
MetaData update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
PreferredContent update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Presence update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Remote make DropDead transition minimize remote.log for dead sameas remotes 2019-10-15 11:39:25 -04:00
SingleValue update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Trust update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Activity.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Chunk.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Config.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
ContentIdentifier.hs add RemoteStateHandle 2019-10-14 13:51:42 -04:00
Difference.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Export.hs add back non-preferred files to imported tree 2019-05-20 16:43:52 -04:00
File.hs add back non-preferred files to imported tree 2019-05-20 16:43:52 -04:00
FsckResults.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Group.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Line.hs convert transitions.log to attoparsec and bytestring-builder 2019-01-10 17:13:30 -04:00
Location.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
MapLog.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
MetaData.hs add RemoteStateHandle 2019-10-14 13:51:42 -04:00
Multicast.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
NumCopies.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
PreferredContent.hs oops, fixed wrong change 2019-05-23 12:44:27 -04:00
Presence.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Remote.hs make DropDead transition minimize remote.log for dead sameas remotes 2019-10-15 11:39:25 -04:00
RemoteState.hs add RemoteStateHandle 2019-10-14 13:51:42 -04:00
Schedule.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
SingleValue.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Smudge.hs rename key2file and file2key 2019-01-14 13:03:35 -04:00
Transfer.hs cache the serialization of a Key 2019-11-22 17:49:16 -04:00
Transitions.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Trust.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Unused.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
UUID.hs fix init default description reversion 2019-06-20 20:30:24 -04:00
UUIDBased.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
View.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Web.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00