nimbus-eth1/nimbus/db/kvt
Jordan Hrycaj 5ac362fe6f
Aristo and kvt balancer management update (#2504)
* Aristo: Merge `delta_siblings` module into `deltaPersistent()`

* Aristo: Add `isEmpty()` for canonical checking whether a layer is empty

* Aristo: Merge `LayerDeltaRef` into `LayerObj`

why:
  No need to maintain nested object refs anymore. Previously the
 `LayerDeltaRef` object had a companion `LayerFinalRef` which held
  non-delta layer information.

* Kvt: Merge `LayerDeltaRef` into `LayerRef`

why:
  No need to maintain nested object refs (as with `Aristo`)

* Kvt: Re-write balancer logic similar to `Aristo`

why:
  Although `Kvt` was a cheap copy of `Aristo` it sort of got out of
  sync and the balancer code was wrong.

* Update iterator over forked peers

why:
  Yield additional field `isLast` indicating that the last iteration
  cycle was approached.

* Optimise balancer calculation.

why:
  One can often avoid providing a new object containing the merge of two
  layers for the balancer. This avoids copying tables. In some cases this
  is replaced by `hasKey()` look ups though. One uses one of the two
  to combine and merges the other into the first.

  Of course, this needs some checks for making sure that none of the
  components to merge is eventually shared with something else.

* Fix copyright year
2024-07-18 21:32:32 +00:00
..
kvt_delta Aristo and kvt balancer management update (#2504) 2024-07-18 21:32:32 +00:00
kvt_desc Aristo and kvt balancer management update (#2504) 2024-07-18 21:32:32 +00:00
kvt_init Use RocksDb column family handles instead of name strings. (#2418) 2024-06-27 16:51:43 +08:00
kvt_tx Aristo and kvt balancer management update (#2504) 2024-07-18 21:32:32 +00:00
kvt_walk Aristo: Update unit test suite (#2002) 2024-02-01 21:27:48 +00:00
kvt_api.nim Separate config for core db and ledger (#2479) 2024-07-12 13:12:25 +00:00
kvt_constants.nim Core db use differential tx layers for aristo and kvt (#1949) 2023-12-19 12:39:23 +00:00
kvt_debug.nim Aristo and kvt balancer management update (#2504) 2024-07-18 21:32:32 +00:00
kvt_delta.nim Aristo and kvt balancer management update (#2504) 2024-07-18 21:32:32 +00:00
kvt_desc.nim Aristo and kvt balancer management update (#2504) 2024-07-18 21:32:32 +00:00
kvt_init.nim Core db use differential tx layers for aristo and kvt (#1949) 2023-12-19 12:39:23 +00:00
kvt_layers.nim Aristo and kvt balancer management update (#2504) 2024-07-18 21:32:32 +00:00
kvt_persistent.nim Aristo update rocksdb backend drivers (#2135) 2024-04-16 20:39:11 +00:00
kvt_tx.nim Core db reorg (#2444) 2024-07-03 15:50:27 +00:00
kvt_utils.nim Separate config for core db and ledger (#2479) 2024-07-12 13:12:25 +00:00
kvt_walk.nim Core db use differential tx layers for aristo and kvt (#1949) 2023-12-19 12:39:23 +00:00