This is an archive of the discontinued Mercurial Phabricator instance.

storageutil: allow modern hash sizes for fileids
ClosedPublic

Authored by joerg.sonnenberger on Jul 21 2020, 4:41 PM.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This look good overall. I wonder how much the tuple creation and lookup cost and if we should have two explicite test instead.

This question leads me to wonder if we should not simply have the store advertise the size of the hash it use and strictly test against that. What do you think ?

The tuples result in bytecode constants, so it's a one time overhead.

pulkit accepted this revision.Sep 2 2020, 7:53 AM
This revision is now accepted and ready to land.Sep 2 2020, 7:53 AM