diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-08-21 10:00:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-21 10:00:05 +0800 |
commit | 1ebe7b8729a166745d56203685232cb2e7d41cab (patch) | |
tree | ee5546328ab67c49a8a61de607b783f1102ade58 /integration_test/utils.go | |
parent | 1e71e263e063adbe7e44d48818f9c74924a2945d (diff) | |
download | dexon-consensus-1ebe7b8729a166745d56203685232cb2e7d41cab.tar dexon-consensus-1ebe7b8729a166745d56203685232cb2e7d41cab.tar.gz dexon-consensus-1ebe7b8729a166745d56203685232cb2e7d41cab.tar.bz2 dexon-consensus-1ebe7b8729a166745d56203685232cb2e7d41cab.tar.lz dexon-consensus-1ebe7b8729a166745d56203685232cb2e7d41cab.tar.xz dexon-consensus-1ebe7b8729a166745d56203685232cb2e7d41cab.tar.zst dexon-consensus-1ebe7b8729a166745d56203685232cb2e7d41cab.zip |
core: tune performance total ordering (#66)
- the checking of `internal stability` is more expensive than checking `len(ANS) == validatorCount`. So only check it when `len(ANS) != validatorCount`.
- cache the result of `grade` between candidates.
- cache the `acking height vector` of each candidate.
- add test on total ordering with different acking frequency between blocks.
Diffstat (limited to 'integration_test/utils.go')
0 files changed, 0 insertions, 0 deletions