Skip to content

Commit 0670468

Browse files
committed
performance note (#470)
1 parent 64bbb3d commit 0670468

File tree

1 file changed

+4
-0
lines changed
  • git-repository/src/object/tree

1 file changed

+4
-0
lines changed

git-repository/src/object/tree/diff.rs

+4
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ pub mod change {
8181
/// Diffing
8282
impl<'repo> Tree<'repo> {
8383
/// Return a platform to see the changes needed to create other trees, for instance.
84+
///
85+
/// # Performance
86+
///
87+
/// It's highly recommended to set an object cache to avoid extracting the same object multiple times.
8488
pub fn changes<'a>(&'a self) -> Platform<'a, 'repo> {
8589
Platform {
8690
state: Default::default(),

0 commit comments

Comments
 (0)