It's an interesting idea, thanks for sharing. I haven't heard if there is a plugin is available for such job, although it would be cool to have it!
In fact, if trees couldn't be diffed things like React would have serious speed concerns, or more realistically wouldn't even exist in the first place.
Edit: Just to clarity, I'm also not saying O(n^3) isn't slow compared to React's O(n), just that it's potentially a lot faster than NP.