Remove some ZalsaDatabase::zalsa calls

Instead pass around `&Zalsa` to callers more to reduce dynamic dispatch, in most of these cases the functions are only called once so the compiler should have enough knowledge to make the extra argument passing virtually free
This commit is contained in:
Lukas Wirth 2025-02-21 07:30:37 +01:00
parent f1e99c2f25
commit 5eb99ccbab
10 changed files with 74 additions and 36 deletions

View file

@ -79,7 +79,7 @@ where
// old value.
if let Some(old_memo) = &opt_old_memo {
self.backdate_if_appropriate(old_memo, &mut revisions, &value);
self.diff_outputs(db, database_key_index, old_memo, &mut revisions);
self.diff_outputs(zalsa, db, database_key_index, old_memo, &mut revisions);
}
tracing::debug!("{database_key_index:?}: read_upgrade: result.revisions = {revisions:#?}");