MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / apply_file_ops_batched

Function apply_file_ops_batched

atomic-core/src/apply/file_ops.rs:230–236  ·  view source on GitHub ↗

Apply FileOps using CRDT table handles opened once for the full pass. This is a specialized fast path for insert-only workloads such as large initial file adds. More complex edit patterns fall back to the generic `apply_file_ops`.

(
    txn: &mut WriteTxn<'_>,
    change_id: NodeId,
    file_ops: &[FileOps],
)

Source from the content-addressed store, hash-verified

228/// initial file adds. More complex edit patterns fall back to the generic
229/// `apply_file_ops`.
230pub fn apply_file_ops_batched(
231 txn: &mut WriteTxn<'_>,
232 change_id: NodeId,
233 file_ops: &[FileOps],
234) -> PristineResult<ApplyFileOpsStats> {
235 apply_file_ops_batched_with_inodes(txn, change_id, file_ops, &HashMap::new())
236}
237
238/// Apply semantic operations using the graph identities allocated for this
239/// change's FileAdd operations. The map pairs paths within this change with

Calls 1