replace arc-swap with manual AtomicPtr

This commit is contained in:
Ibraheem Ahmed 2025-02-19 00:32:20 -05:00 committed by David Barsky
parent 26aeeec9b1
commit 2a751d559b
9 changed files with 166 additions and 149 deletions

View file

@ -1,5 +1,3 @@
use std::sync::Arc;
use crate::{
zalsa::ZalsaDatabase, zalsa_local::ActiveQueryGuard, Cycle, Database, Event, EventKind,
};
@ -23,7 +21,7 @@ where
&'db self,
db: &'db C::DbView,
active_query: ActiveQueryGuard<'_>,
opt_old_memo: Option<Arc<Memo<C::Output<'_>>>>,
opt_old_memo: Option<&Memo<C::Output<'_>>>,
) -> &'db Memo<C::Output<'db>> {
let zalsa = db.zalsa();
let revision_now = zalsa.current_revision();