perf: Some small perf things (#744)

* Some perf things

* Remove unused `QueryOrigin::BaseInput`
This commit is contained in:
Lukas Wirth 2025-03-05 18:23:24 +01:00 committed by GitHub
parent 3ffc9a2efe
commit ceb9b083b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 63 additions and 83 deletions

View file

@ -37,7 +37,7 @@ where
// If we already executed this query once, then use the tracked-struct ids from the
// previous execution as the starting point for the new one.
if let Some(old_memo) = &opt_old_memo {
if let Some(old_memo) = opt_old_memo {
active_query.seed_tracked_struct_ids(&old_memo.revisions.tracked_struct_ids);
}
@ -75,7 +75,7 @@ where
// really change, even if some of its inputs have. So we can
// "backdate" its `changed_at` revision to be the same as the
// old value.
if let Some(old_memo) = &opt_old_memo {
if let Some(old_memo) = opt_old_memo {
self.backdate_if_appropriate(old_memo, &mut revisions, &value);
self.diff_outputs(zalsa, db, database_key_index, old_memo, &mut revisions);
}