-
Notifications
You must be signed in to change notification settings - Fork 267
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
In consensus/src/model/sstores/utxo_set.rs the write_many function will use a DirectDBWriter to write to the UTXOs to the database.
It seems like converting using a WriteBatch to write the data as an entire batch would make this area less hot (See Extras section below)
Writing to cache can also be skipped
TODO
- Investigate if converting to
BatchDbWriterindeed results in performance improvements (either faster completion or less CPU intensiveness) - (if so) Implement a
write_many_without_cache, and updateUtxoSetStore::write_manyto usewrite_many_without_cachepassing in aBatchDbWriterinstead of aDirectDbWriterinstance
Extras
Flamegraph when using Direct DB Writer (Current)
Flamegraph when using Batched Writer (suggested)

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers