Skip to content
Snippets Groups Projects
Commit 297fa956 authored by Georges Racinet's avatar Georges Racinet
Browse files

rust-index: optim note for post-scaffolding removal

parent 74347473
2 merge requests!737Improvements to the Rust index's performance,!708Implement pure rust revlog Index
......@@ -96,6 +96,9 @@
/// return True if the node exist in the index
def has_node(&self, node: PyBytes) -> PyResult<bool> {
// TODO OPTIM we could avoid a needless conversion here,
// to do when scaffolding for pure Rust switch is removed,
// as `get_rev()` currently does the necessary assertions
self.get_rev(py, node).map(|opt| opt.is_some())
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment