MystenLabs / mysticeti

Mysticeti: Low-Latency DAG Consensus with Fast Commit Path
Apache License 2.0
49 stars 25 forks source link

[performance improvement] cache votes and link to block #57

Closed akichidis closed 9 months ago

akichidis commented 9 months ago

Under circumstances the commit rule on a 150 validator network could take 10s of miliseconds per commit to execute. That could be proven particularly slow especially when experiencing some asynchrony. Also a slow commit rule wouldn't allow us to execute it more frequently as well given that is part of the block processing path.

This PR is:

the above with some additional improvements which will be added on a follow up PR manage to reduce the commit latency to ~3.7ms per try_commit run.

asonnino commented 9 months ago

Let's test this, the committer code is very delicate. (I know, I sound like a broken record)

asonnino commented 9 months ago

https://github.com/MystenLabs/mysticeti/pull/57#discussion_r1418143049

I think it's not a total stake here, but just stake of all decision_blocks

Good catch!