Skip to content

Commit

Permalink
performance note (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Sep 19, 2022
1 parent 64bbb3d commit 0670468
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions git-repository/src/object/tree/diff.rs
Expand Up @@ -81,6 +81,10 @@ pub mod change {
/// Diffing
impl<'repo> Tree<'repo> {
/// Return a platform to see the changes needed to create other trees, for instance.
///
/// # Performance
///
/// It's highly recommended to set an object cache to avoid extracting the same object multiple times.
pub fn changes<'a>(&'a self) -> Platform<'a, 'repo> {
Platform {
state: Default::default(),
Expand Down

0 comments on commit 0670468

Please sign in to comment.