Page MenuHomePhabricator

[avalanche] Cache the peer score
ClosedPublic

Authored by Fabien on Sep 3 2021, 13:33.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
Commits
rABCa839bb735777: [avalanche] Cache the peer score
Summary

Since it is not possible to update the score for a proof at the moment, we can cache the value to avoid recomputing every time. This especially makes sense after D10031 since the proof score is used as a key for the peer set.

This is an optimization only and does not change the behavior.

Ref T1864.

Test Plan
ninja all check-all

Diff Detail

Event Timeline

Fabien requested review of this revision.Sep 3 2021, 13:33
This revision is now accepted and ready to land.Sep 3 2021, 14:47
Fabien planned changes to this revision.Sep 28 2021, 19:05
Fabien added a task: Restricted Maniphest Task.
This revision is now accepted and ready to land.Nov 23 2021, 14:22
Fabien planned changes to this revision.Jan 28 2022, 19:18

Will revive later if needed

This revision is now accepted and ready to land.Feb 23 2022, 17:44
Fabien added a task: Restricted Maniphest Task.
Fabien removed a task: Restricted Maniphest Task.
This revision was automatically updated to reflect the committed changes.