I would like to know what is the fastest way in java 1.5 to compare two data structures.
My data structure is a tree that can be quite large. I can go through the entire data structure and compare 2 node to node (which I think will be slow). Or can I calculate the hash of the data structure to make it faster, right?
What is the best (efficient and not too long) way to calculate this hash?
I would not want too much time to calculate the hash ...
I hope I understand .. :-) ...
source
share