decay: don't bump version for weight-only changes
Decay is metadata, not content. Bumping version caused unnecessary log churn and premature cache invalidation. Also disable auto-decay in scheduler — was causing version spam and premature demotion of useful nodes.
This commit is contained in:
parent
61dd67caf7
commit
05e0f1d5be
1 changed files with 1 additions and 1 deletions
|
|
@ -197,8 +197,8 @@ impl Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only persist nodes whose weight actually changed
|
// Only persist nodes whose weight actually changed
|
||||||
|
// Don't bump version — decay is metadata, not content change
|
||||||
if (node.weight - old_weight).abs() > 1e-6 {
|
if (node.weight - old_weight).abs() > 1e-6 {
|
||||||
node.version += 1;
|
|
||||||
updated.push(node.clone());
|
updated.push(node.clone());
|
||||||
decayed += 1;
|
decayed += 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue