for example, there is a local class object
remotely calling an api to get the json string of another class object
now to judge whether the two objects are equal or not, we need a lot of comparisons.
is it more efficient to convert local objects to strings than remotely acquired json strings?
or convert the remotely acquired json string into an object
, and this class customizes an equals method for field comparison.
it is more efficient to use the equals method?