diff options
| author | tv <tv@krebsco.de> | 2026-11-29 03:04:13 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-29 03:04:13 +0000 |
| commit | 10f4e55b1c7d88eef1454ea02488de239489789b (patch) | |
| tree | 68d698c7fd0874cbf55318040c48b2024bf98e22 /src/document/bench.rs | |
| parent | 2b4e99e1ed273da0f921eaec3e52300480acdf0a (diff) | |
document: screening what is received is the document's, the rules access control's
access::screen becomes document::screen: reading received bytes as
changes, putting them in order, keeping those that wait or are refused,
vouching by signatures and applying is all Automerge's shape, and has
each change judged by the rules (access::rules) before it applies it.
Diffstat (limited to 'src/document/bench.rs')
| -rw-r--r-- | src/document/bench.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/document/bench.rs b/src/document/bench.rs index db76ccc..09095fa 100644 --- a/src/document/bench.rs +++ b/src/document/bench.rs @@ -31,7 +31,7 @@ //! document, each once. //! //! `screening`: what judging every change received costs while catching up -//! (`access::screen`), against applying them unjudged, as a node whose document has no +//! (`document::screen`), against applying them unjudged, as a node whose document has no //! policy does now: many changes into an empty document, as one delta brings them; //! judged with no policy in them (each passes, read at its dependencies, after its //! paths were found), and with the policy their first change wrote (each judged by the @@ -638,7 +638,7 @@ fn nested_on(mut doc: Document, changes: usize, actors: usize) -> Document { } /// The time to take `doc`'s changes into an empty document: unjudged, as Automerge -/// applies them; and screened (`access::screen::apply`). +/// applies them; and screened (`document::screen::apply`). fn screening_costs(workload: &str, doc: &Document) { let raw: Vec<Vec<u8>> = doc .get_changes(&[]) @@ -661,13 +661,13 @@ fn screening_costs(workload: &str, doc: &Document) { let changes = changes(); let mut empty = Document::new(); let started = Instant::now(); - let screened = crate::access::screen::apply( + let screened = crate::document::screen::apply( &mut empty, Epoch::GENESIS, false, changes, - &mut crate::access::screen::Waiting::default(), - &mut crate::access::screen::Refusals::default(), + &mut crate::document::screen::Waiting::default(), + &mut crate::document::screen::Refusals::default(), None, &mut crate::document::PatchLog::inactive(), ) |
