Reuse bound command keys and keep identical shared bindings

This commit is contained in:
gloamxun committed 2026-12-02 03:33:33 +08:00
1 parent ac93967cb2
commit 143775b427
2 files changed
+112 -9

No files matched your search

@@ -884,8 +884,8 @@ impl Executor {
meaning.clone()
}
RawEntryMut::Vacant(entry) => {
let meaning = self.state.meaning_hashed(name, hash);
entry.insert_hashed_nocheck(hash, Arc::new(name.clone()), (revision, meaning.clone(), epoch));
let (key, meaning) = self.state.cache_meaning_hashed(name, hash);
entry.insert_hashed_nocheck(hash, key, (revision, meaning.clone(), epoch));
meaning
}
}