java-object-diff icon indicating copy to clipboard operation
java-object-diff copied to clipboard

Limit maximum depth

Open drasojem opened this issue 9 years ago • 1 comments

I'm looking for a way for limiting the maximum depth of the diff. As I'm trying to diff a very complex Object where are many (millions) paths to the same objects, without them being circles. As you can imagine this results in an ridiculous runtime. So what I thought might be a solution to this, is to limit the depth to 2 and replace objects in tier 2 with their IDs (every object in my application has a unique one), so that the user can see their diff by requesting another run with the new object. Is there already a way to accomplish that which i didn't found? Or is that a feature wich will be considered to be implemented? If you would give me some advice where to start, I would try to implement it myself.

drasojem avatar Dec 23 '16 08:12 drasojem

+1

denov avatar Jan 29 '17 05:01 denov