Expand description
Shared zones with copy-on-write updates.
Cloning a SharedDbm is cheap: handles share a zone until an update
needs to change it. Existing snapshots remain unchanged, and an update
can reuse uniquely owned storage. Sharing uses single-threaded Rc,
not Arc; to move a zone to another thread, convert it to an owned
Dbm with SharedDbm::into_dbm.
Shared and owned zones have the same mathematical operations. The
SharedDbm API explains when copying can affect performance.
Structsยง
- Shared
Dbm - An immutable zone snapshot with cheap cloning and copy-on-write updates.