btcd/database/internal
Calvin Kim e009124748 treap, ffldb: change Put() to take in multiple key-value pairs
Previously, the Put() function took in a single key-value pair,
resulting in memory allocation overhead as the intermediary treapNodes
got allocated and immediately garbage collected, resulting in
performance loss due to the garbage collection overhead.

We're able to recycle the intermediary treapNodes allocated by taking in
multiple key-value pairs.  This results in better performance of the
node especially during UTXO cache flushes.
2025-11-14 14:58:35 +01:00
..
treap treap, ffldb: change Put() to take in multiple key-value pairs 2025-11-14 14:58:35 +01:00