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

Method fast

atomic-core/src/crdt/apply/options.rs:261–272  ·  view source on GitHub ↗

Creates options optimized for performance. These options disable some validation for faster apply at the cost of reduced safety. Use only when applying trusted changes. # Example ```rust use atomic_core::crdt::apply::options::ApplyOptions; let options = ApplyOptions::fast(); assert!(!options.validate_ordering()); ```

()

Source from the content-addressed store, hash-verified

259 /// assert!(!options.validate_ordering());
260 /// ```
261 pub fn fast() -> Self {
262 Self {
263 validate_ordering: false,
264 validate_references: true, // Still check references for safety
265 track_conflicts: false,
266 fail_on_conflict: false,
267 allow_duplicate_ids: false,
268 update_reverse_indexes: true,
269 max_operations: None,
270 validate_content_ranges: false,
271 }
272 }
273
274 // Accessors
275

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected