You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method SortitionHandleTx::descended_from is particularly slow, since it can do lots of MARF reads in the sortition DB. Looking at the log files, it seems to be the biggest contributor to sortition-processing -- even more so than downloading the Bitcoin block! Fortunately, we can easily memoize the PoX anchor block that a block-commit descends from; this should remove the need to query the MARF at all.
The text was updated successfully, but these errors were encountered:
jcnelson
changed the title
[chainstate] memoize block-commit descendancy information for SortitionHandleTx::descends_from
[chainstate] memoize block-commit descendancy information for SortitionHandleTx::descended_fromFeb 13, 2022
The method
SortitionHandleTx::descended_from
is particularly slow, since it can do lots of MARF reads in the sortition DB. Looking at the log files, it seems to be the biggest contributor to sortition-processing -- even more so than downloading the Bitcoin block! Fortunately, we can easily memoize the PoX anchor block that a block-commit descends from; this should remove the need to query the MARF at all.The text was updated successfully, but these errors were encountered: