utreexo icon indicating copy to clipboard operation
utreexo copied to clipboard

Genproofs slow to close & slow in general

Open adiabat opened this issue 5 years ago • 1 comments
trafficstars

When we ctrl-break from genproofs, it can take more than 60 seconds.

saveBridgeNodeData() calls WriteForestToDisk() in some cases, and WriteMiscData() which calls close() - those are the main candidates for taking a lot of time. But it should be able to stop within > 10 sec even on a slow computer.

Also genproofs is just too slow in general ... slower than it feels like it should be. Something to check out.

adiabat avatar Oct 01 '20 13:10 adiabat

https://github.com/mit-dci/utreexo/blob/92d6ee46da74f1304dd15a62c57c3ceb221b357c/bridgenode/rev.go#L180-L195

this may be a bottleneck; this part can be made into it's own goroutine / worker, and there can be multiple workers deserializing after it's pulled from disk

adiabat avatar Oct 01 '20 13:10 adiabat