-
Daniele Nicolodi authored
Cumulative balances are more efficiently obtained adding to account inventories while iterating one time through the ledger transactions. The only subtlety is that, because inventory objects are mutable, intermediate inventories need to be copied when are emitted or will be overwritten when subsequent transactions are added.
Daniele Nicolodi authoredCumulative balances are more efficiently obtained adding to account inventories while iterating one time through the ledger transactions. The only subtlety is that, because inventory objects are mutable, intermediate inventories need to be copied when are emitted or will be overwritten when subsequent transactions are added.