You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e8b517e
Browse filesBrowse the repository at this point in the historyBrowse files
perf(storage): O(1) storage_tail append via newest-first batch list
conn.storage_tail now keeps per-transaction datom batches newest-first
and conses each report's tx_data, replacing the O(#batches) list append
on every transaction. The forward (tx, then in-tx) order is restored
with List.rev only where the flat tail is consumed: store_tail writes,
the Conn.storage_tail accessor, and restore seeding — so the persisted
Storage_tail payload is order-identical to before.
Storage.tail_datom_count folds group lengths instead of concat |> length,
and persist_transact_tail (the db-level transact path) computes the
compaction count before materializing groups @ [tx_data], so a
compaction-triggering tx skips the append entirely.
Regression coverage in test_storage: on-disk Storage_tail group order
across transacts, restore_conn, and compaction; Conn.storage_tail
accessor order; tail_datom_count over grouped tails.
0 commit comments