wmde / Diff

䷂ Library for diffing, patching and representing differences between objects
BSD 3-Clause "New" or "Revised" License
200 stars 15 forks source link

Optimize Diff::isEmpty for performance #89

Closed thiemowmde closed 6 years ago

thiemowmde commented 6 years ago

Instead of always iterating the entire tree, stop immediately when at least one atomic diff operation was found.

I'm also removing the methods description, which is actually not true.