hexresearch / hexresearch/hschain

Do not send expired timeouts

Open
#441 0 comments 0 reactions 1 assignee Claimed by @drchaos View on GitHub
consensus engine
Dominant language
C
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently we send timeouts to consensus engine whether we scheduled another timeout and this one will be discarded or not. This is minor performance problem since timeout will be written in WAL which is relatively expensive operation

Looking at implementation of [threadDelay](https://hackage.haskell.org/package/base-4.12.0.0/docs/src/GHC.Event.Thread.html#threadDelay) one could see that GHC provide necessary tools for implementing resettable timer

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.